Method for distinguishing a smoke condition from a dust condition using video images

ABSTRACT

Detecting video phenomena, such as fire in an aircraft cargo bay, includes receiving a plurality of video images from a plurality of sources, compensating the images to provide enhanced images, extracting features from the enhanced images, and combining the features from the plurality of sources to detect the video phenomena. Extracting features may include determining an energy indicator for each of a subset of the plurality of frames. Detecting video phenomena may also include comparing energy indicators for each of the subset of the plurality of frames to a reference frame. The reference frame corresponds to a video frame taken when no fire is present, video frame immediately preceding each of the subset of the plurality of frames, or a video frame immediately preceding a frame that is immediately preceding each of the subset of the plurality of frames. Image-based and non-image based techniques are described herein in connection with fire detection and/or verification and other applications.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional of U.S. patent application Ser. No.10/702,070, filed on Nov. 5, 2003 (now U.S. Pat. No. 7,505,604), whichis incorporated herein by reference, and which is a continuation-in-partof U.S. patent application Ser. No. 10/152,148, filed on May 20, 2002(now U.S. Pat. No. 7,280,696 issued Oct. 9, 2007), which is incorporatedby reference herein, and claims priority to U.S. Provisional PatentApplication No. 60/502,099, filed on Sep. 11, 2003, which isincorporated by reference herein, and U.S. Provisional PatentApplication No. 60/424,287 filed on Nov. 6, 2002, which is alsoincorporated by reference herein.

BACKGROUND OF THE INVENTION

1. Technical Field

This application relates to the detection, isolation, verification andalarming of certain conditions, and more particularly to the detection,isolation, verification and alarming of certain conditions using videoimages.

2. Description of Related Art

Conventional fire and smoke detection systems, such as may be installedaboard aircraft, often suffer from high rates of false alarms.Currently, once an alarm has been initiated, such as by a smokedetection system, the pilot is obligated to suppress the fire and divertthe aircraft to the nearest emergency airfield. In case of extendedrange operations, such as, for example, with large jetliners over polarregions, the act of diverting to the nearest airfield may itself bedangerous as well as inconvenient. Additionally, false alarms mayincrease costs and expend resources unnecessarily. Reducing false smokealarm rate may therefore beneficial both for both safety and economicreasons.

One cause of false alarms is caused by the formation of fog.Conventional systems may have false alarms due to the inability of afire and smoke detection system to distinguish between fog and smoke.Accordingly, it may be desirable to reduce the incidence rate of falsealarms issued by conventional smoke detection system, such as thoseinstalled in aircraft, by detecting and distinguishing between fog andsmoke conditions.

SUMMARY OF THE INVENTION

In accordance with one aspect of the invention is a method for detectingfog comprising: determining at least one visual characteristic of imagedata for a portion of an image including at least one of: a change inoverall image intensity for said portion, a change in image contrast forsaid portion, and a change in image sharpness for said portion; anddetermining using said at least one visual characteristic whether saidchange associated with said at least one visual characteristic isapproximately uniform with respect to said portion. An amount of saidchange may be within a predetermined threshold. The method may alsoinclude determining that at least one of the following conditions ispresent for said portion: an increase in overall image intensity, adecrease in image sharpness, and a decrease in image contrast; anddetermining a positive indicator for fog presence if it is determinedthat said at least one of the following conditions is present, and it isdetermined using said at least one visual characteristic that saidchange associated with said at least one visual characteristic isapproximately uniform with respect to the portion. The method may alsoinclude detecting that said change occurs rapidly within a predeterminedtime period. The time period may be a few seconds. The method mayfurther comprise: detecting that fog droplets form throughout apredetermined area at a same point in time. An initial value may beassociated with said at least one visual characteristic prior to fogformation and a second value is associated with said at least one visualcharacteristic during fog formation, and the method may furthercomprise: detecting that a value associated with said at least visualcharacteristic returns from said second value toward said initial valueindicating fog dispersal. The value may return to said initial valuefrom said second value in approximately linear time. The value returningto said initial value from said second value may be approximatelyuniform across said portion of the image. The method may include:extracting at least one feature of said image data. The at least onefeature may include an average image intensity of said portion of saidimage indicating image brightness, the average intensity m of saidportion X of an image at a time “t” being represented as:

${m(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{Xj}(t)}}}$where N represents the total number of pixels in the portion X of theimage at a time “t”. The method may include: determining an averageimage intensity for a plurality of portions for each of a plurality ofimages over a period of time to detect a trend in image brightness; anddetermining, using said average image intensity for each of saidplurality of portions for each of said plurality of images, if overallbrightness of a region defined by said plurality of portions increasesover a predetermined time period above a predetermined threshold. The atleast one feature may include intensity of a change image with respectto said portion X of said image, D(t,δ)=X(t)−X(t−δ), which is adifference between time instances t and t−δ of said portion, representedas:

${m_{D}\left( {t,\delta} \right)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{Dj}\left( {t,\delta} \right)}}}$where N represents a total number of pixels being analyzed of saidportion X. The method may further comprise: determining creation of fogwhen there are one or more positive values of m_(D)(t,δ); anddetermining dispersion of fog when there are one or more negative valuesof m_(D)(t,δ). The time interval δ between two compared frames may befixed. The time interval δ may be adjusted in accordance with at leastone system condition or parameter. A reference frame of the portion,X(t−δ), may represent an initial view of a portion of a cargo bay X(0)such that δ is a current time t since the start of a flight from a timeof the initial view and wherein the difference image with respect to theportion, D(t,δ), represents a cumulative change of view of the portionsince beginning of the flight. A portion of reference image X(t−δ) maybe reset periodically to accommodate changes of background. A portion ofa reference frame X(t−δ) may be set to a frame immediately preceding acurrent frame such that δ=1, and wherein the difference image withrespect to said portion D(t,δ) represents the instantaneous rate ofchange of a view of said portion. The at least one feature may include astandard deviation of the image intensity of said portion representedas:

${s(t)} = {\sqrt{\frac{1}{N}{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m(t)}} \right)^{2}}}.}$Large values of s(t) may indicate high variability of intensity and maybe related to high contrast, low values of s(t) may indicate lowercontrast, and the method may include: detecting creation of fog whenthere is a rapid decrease of s(t) within a predetermined threshold; anddetecting fog dispersal when there is an increase in s(t). The at leastone feature may include a mean absolute difference from the meanrepresented as:

${d(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{{{Xj}(t)} - {m(t)}}}}}$Creation of fog may be associated with a rapid drop of d(t) above apredetermined threshold and an increase in d(t) may be associated withfog dispersal. The at least one feature may include an absolute value ofthe average intensity change represented as:

${d_{a}\left( {t,\delta} \right)} = {{\frac{1}{N}{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {{Xj}\left( {t - \delta} \right)}} \right)}}}$in which t and t−δ represent points in time and X(t) and X(t−δ) areportions of images taken, respectively, at these two points in time. Theat least one feature may include a correlation measurement based on thet-Student distribution represented as:

${d_{s}\left( {t,\delta} \right)} = \frac{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)}{\sqrt{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}}$in which t and t−δ represent points in time and X(t) and X(t−δ) areportions of images taken, respectively, at these two points in time. Thecorrelation measurement may be used in tracking a statistical evolutionof a portion of a video stream as compared to a portion of the referenceimage at time t−δ, and wherein values of said correlation measurementlarger than a predetermined threshold indicate fog. The at least onefeature may include a correlation based on a likelihood ratiodistribution represented as:

${d_{1}(t)} = {1 - {\min\limits_{j = {{all}\mspace{11mu}{pixels}}}{\left( {{LR}_{j},\frac{1}{{LR}_{j}}} \right)\mspace{20mu}{where}}}}$${LR}_{j} = {\frac{\left\lbrack {\frac{\left( {s(t)} \right)^{2} + \left( {s\left( {t - \delta} \right)} \right)^{2}}{2} + \frac{\left( {{X_{j}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}{2}} \right\rbrack^{2}}{\left( {s(t)} \right)^{2}\left( {s\left( {t - \delta} \right)} \right)^{2}}.}$The at least one feature may include an intensity range r(t) at a time trepresented as: r(t)=X_(max)(t)−X_(min)(t) where a maximum (Xmax) and aminimum (Xmin) intensity of a portion X of an image at a time t are usedto provide an indication of reduced image contrast for the portion X andare represented as:

${{\chi_{\max}(t)} = {\max\limits_{j = {{all}\mspace{11mu}{pixels}}}{{\overset{.}{X}}_{j}(t)}}},{{\chi_{\min}(t)} = {\min\limits_{j = {{all}\mspace{11mu}{pixels}}}{{X_{j}(t)}.}}}$Creation of fog may be indicated by a rapid drop of r(t), and anincrease in r(t) may indicate fog dispersal, and r(t) decreasing below athreshold amount may indicate that fog is present. The at least onefeature may include characterizing image sharpness of a portion X of animage using an intensity gradient. X and y gradient components G atpixel i,j of a portion X of an image at a time t may be defined as aleft difference represented as: G_(i,j) ^(x)(t)=X_(i,j)(t)=X_(i−1,j)(t)G_(i,j) ^(y)(t)=X_(i,j)(t)−X_(i−j,1)(t). X and y gradient components Gat pixel i,j of a portion X of an image at a time t may be defined as aright difference represented as: G_(i,j) ^(x)(t)=X_(i+1,j)(t)=X_(i,j)(t)G_(i,j) ^(y)(t)=X_(i,j+1)(t)−X_(i,j)(t). X and y gradient components Gat pixel i,j may be defined as a double-sided difference represented as:

${G_{i,j}^{x}(t)} = \frac{{X_{{i + 1},j}(t)} - {X_{{i - 1},j}(t)}}{2}$${G_{i,j}^{y}(t)} = {\frac{{X_{i,{j + 1}}(t)} - {X_{i,{j - 1}}(t)}}{2}.}$The intensity gradient may define a gradient in terms of differencesbetween pixel locations with time as a constant. The intensity gradientmay define a gradient in terms of pixel values between portions ofimages taken at different points in time. The at least one feature mayinclude characterizing image sharpness using an intensity gradient, andwherein said intensity gradient may be determined using a portion of achange image. A large value of said intensity gradient may indicatesharp edges within a portion of an image. The at least one feature mayinclude a mean absolute gradient value represented as:

${{g_{a}^{x}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{x}(t)}}}}},{{g_{a}^{y}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}}}$such that creation of fog is signified by a rapid drop in at least oneof: g_(a) ^(x)(t) and g_(a) ^(y)(t). The at least one feature mayinclude an overall average gradient characteristic represented as:g_(a)(t)=g_(a) ^(x)(t)+g_(a) ^(y)(t). The at least one feature mayinclude an average gradient norm, wherein a gradient norm G at pixel i,jis represented as: G_(i,j) ^(n)(t)=√{square root over (G_(i,j)^(x)(t)²+G_(i,j) ^(y)(t)²)}{square root over (G_(i,j) ^(x)(t)²+G_(i,j)^(y)(t)²)} for all “N” pixels within a portion of an image, and theaverage gradient norm may be represented as:

${g_{n}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{n}(t)}.}}}$Creation of fog may be related to a rapid drop in g_(n)(t) below apredetermined threshold value, and an increase in g_(n)(t) may indicatefog dispersal. The at least one feature may include maximum and minimumvalues of x and y components of a gradient norm G represented as:

${{g_{\max}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{G_{i,j}^{n}(t)}}},{{g_{\min}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{G_{i,j}^{n}(t)}}},$

${{g_{\max}^{x}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{x}(t)}}}},{{g_{\min}^{x}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{n}(t)}}}},{and}$${{g_{\max}^{y}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}},{{g_{\min}^{y}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{G_{i,j}^{y}(t)}}.}}}$The at least one feature may include a dynamic range of intensity changeincluding a standard deviation s_(d)(t,δ) of intensity change over somepredefined time interval, δ, defined as:

${s_{d}\left( {t,\delta} \right)} = \sqrt{\frac{1}{N}{\sum\limits_{j = {{all}\mspace{11mu}{pixels}}}\left( {{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}} \right)^{2}}}$and wherein a value of the standard deviation s_(d)(t,δ) is close tozero within some predetermined threshold if there is fog. The at leastone feature may include a mean absolute deviation of a portion from themean value of a portion of the change image represented as:

${d_{d}(t)} = {\frac{1}{N}{\sum\limits_{j = {{all}\mspace{14mu}{pixels}}}{{{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}}}}}$and wherein a value of the mean absolute deviation is close to zerowithin some predetermined threshold if there is fog. The at least onefeature may include a spatial moment of a portion of the change image,and wherein coordinates of a center of mass a portion of the changeimage D(t,δ) are represented as:

${i_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\;{pixels}}}}{{iD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}$${j_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{jD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}$and wherein, if the image change for a portion is uniform across theportion of the image, the coordinates are close to the geometric centerof the portion of the image indicating presence of fog. The at least onefeature may include higher order moments of a portion of a change imagerepresented as:

${M_{2,0}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2}{D_{i,j}\left( {t,\delta} \right)}\mspace{14mu}{and}}}$${M_{0,2}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}{{D_{i,j}\left( {t,\delta} \right)}.}}}$The at least one feature may include a moment of inertia of a portion ofthe change image represented as:

${M_{i}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2} + \left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}} \right){{D_{i,j}\left( {t,\delta} \right)}.}}}$The at least one feature may include moments defined using averageabsolute values of pixels represented as:

${M_{1,0}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{i - {i_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}$${M_{0,1}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{j - {j_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}$${M_{i}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {{{i - {i_{c}\left( {t,\delta} \right)}}} + {{j - {j_{c}\left( {t,\delta} \right)}}}} \right){D_{i,j}\left( {t,\delta} \right)}}}$and wherein, if a portion of the change image is uniform, values forthese moments are larger than a predetermined threshold indicating apresence of fog. The method may also include: determining that at leastone of the following conditions is present for said portion of saidimage: an increase in overall image intensity, a decrease in imagesharpness, and a decrease in image contrast; determining an intermediatepositive indicator for fog presence if it is determined that said atleast one of the following conditions is present, and it is determinedusing said at least one visual characteristic that said changeassociated with said at least one visual characteristic is approximatelyuniform with respect to the portion of the image; and determining afinal positive indicator for fog presence if said intermediate positiveindicator indicates that there is fog which is confirmed by at least oneother feature. The at least one other feature may be a non-imagefeature. The at least one other feature may include at least one oftemperature, humidity and pressure. A plurality of intermediate positiveindicators may be used in determining said final positive indicator. Themethod may further include: distinguishing fog from one of a pluralityof other conditions, wherein said plurality of other conditions includessmoke and an aerosol dispersion. The portion may be an entire image. Theportion may include a plurality of regions of said image. Each of theplurality of regions may be a predefined shape in accordance withlighting and camera view. The at least one visual characteristic may bea frequency-based feature. The frequency-based feature may estimatemotion of an element of said portion. The method may also include:receiving an image from a CCD camera. The CCD camera may have anoperational wavelength sensitivity between approximately 770 and 1200nanometers blocking visible light. The CCD camera may be a conventionalCCD camera with an operational wavelength sensitivity betweenapproximately 400 and 1200 nanometers. The CCD camera may be used whenit is determined that a view area is completely obscured except for apredetermined space within which said CCD camera is included. Theoperational wavelength sensitivity of said CCD camera may exclude aportion of the range between approximately 400 and 1200 nanometers. Theat least one excluded portion may have a range corresponding to one of:a light source and a device that emits within said at least one excludedportion to filter out wavelengths within said at least one excludedportion. The method may include: receiving an image from a camera withan associated light source wherein said camera is mounted opposite saidassociated light source within a viewing area. The viewing area may bean aircraft cargo bay, and said camera and said associated light sourcemay be mounted within a predetermined distance from a ceiling of saidaircraft cargo bay. The said camera and said associated light source maybe positioned at a same vertical and horizontal location on walls ofsaid cargo bay area. The CCD camera may have an operational wavelengthsensitivity approximating that of visible light. The frequency-basedfeature may be used to monitor an area within a camera view for at leastone other condition unrelated to fire. A cargo bay area may be monitoredduring cargo loading using said frequency-base feature.

In accordance with another aspect of the invention is a computer programproduct that detects fog comprising executable code that: determines atleast one visual characteristic of image data for a portion of an imageincluding at least one of: a change in overall image intensity for saidportion, a change in image contrast for said portion, and a change inimage sharpness for said portion; and determines, using said at leastone visual characteristic, whether said change associated with said atleast one visual characteristic is approximately uniform with respect tosaid portion. An amount of said change may be within a predeterminedthreshold. The computer program product may include executable codethat: determines at least one of the following conditions is present forsaid portion: an increase in overall image intensity, a decrease inimage sharpness, and a decrease in image contrast; and determines apositive indicator for fog presence if it is determined that said atleast one of the following conditions is present, and it is determinedusing said at least one visual characteristic that said changeassociated with said at least one visual characteristic is approximatelyuniform with respect to the portion. The computer program product mayinclude: executable code that detects that said change occurs rapidlywithin a predetermined time period. The time period may be a fewseconds. The computer program product may also include: executable codethat detects that fog droplets form throughout a predetermined area at asame point in time. An initial value may be associated with said atleast one visual characteristic prior to fog formation and a secondvalue may be associated with said at least one visual characteristicduring fog formation, and the computer program product may also includeexecutable code that detects that a value associated with said at leastvisual characteristic returns from said second value toward said initialvalue indicating fog dispersal. The value may return to said initialvalue from said second value in approximately linearly time. The valuereturning to said initial value from said second value may beapproximately uniform across said portion of the image. The computerprogram product may include: executable code that extracts at least onefeature of said image data. The at least one feature may include anaverage image intensity of said portion of said image indicating imagebrightness, the average intensity m of said portion X of an image at atime “t” being represented as:

${m(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{Xj}(t)}}}$where N represents the total number of pixels in the portion X of theimage at a time “t”. The computer program product may include executablecode that: determines an average image intensity for a plurality ofportions for each of a plurality of images over a period of time todetect a trend in image brightness; and determines, using said averageimage intensity for each of said plurality of portions for each of saidplurality of images, if overall brightness of a region defined by saidplurality of portions increases over a predetermined time period above apredetermined threshold. The at least one feature may include intensityof a change image with respect to said portion X of said image,D(t,δ)=X(t)−X(t−δ), which is a difference between time instances t andt−δ of said portion, represented as:

${m_{D}\left( {t,\delta} \right)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{Dj}\left( {t,\delta} \right)}}}$where N represents a total number of pixels being analyzed of saidportion X. The computer program product may include executable codethat: determines creation of fog when there are one or more positivevalues of m_(D)(t,δ); and determines dispersion of fog when there areone or more negative values of m_(D)(t,δ). The time interval δ betweentwo compared frames may be fixed. The time interval δ may be adjusted inaccordance with at least one system condition or parameter. A referenceframe of the portion, X(t−δ), may represent an initial view of a portionof a cargo bay X(0) such that δ is a current time t since the start of aflight from a time of the initial view and wherein the difference imagewith respect to the portion, D(t,δ), may represent a cumulative changeof view of the portion since beginning of the flight. A portion ofreference image X(t−δ) may be reset periodically to accommodate changesof background. A portion of a reference frame X(t−δ) may be set to aframe immediately preceding a current frame such that δ=1, and whereinthe difference image with respect to said portion D(t,δ) may representthe instantaneous rate of change of a view of said portion. The at leastone feature may include a standard deviation of the image intensity ofsaid portion represented as:

${s(t)} = {\sqrt{\frac{1}{N}{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m(t)}} \right)^{2}}}.}$Large values of s(t) may indicate high variability of intensity and maybe related to high contrast, low values of s(t) may indicate lowercontrast, and the computer program product may include executable codethat: detects creation of fog when there is a rapid decrease of s(t)within a predetermined threshold; and detects fog dispersal when thereis an increase in s(t). The at least one feature includes a meanabsolute difference from the mean represented as:

${d(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}\;{{{{{Xj}(t)} - {m(t)}}}.}}}$Creation of fog may be associated with a rapid drop of d(t) above apredetermined threshold and wherein an increase in d(t) may beassociated with fog dispersal. The at least one feature may include anabsolute value of the average intensity change represented as:

${d_{a}\left( {t,\delta} \right)} = {{\frac{1}{N}{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {{Xj}\left( {t - \delta} \right)}} \right)}}}$in which t and t−δ represent points in time and X(t) and X(t−δ) areportions of images taken, respectively, at these two points in time. Theat least one feature may include a correlation measurement based on thet-Student distribution represented as:

${d_{s}\left( {t,\delta} \right)} = \frac{\sum\limits_{j = 1}^{N}\;\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)}{\sqrt{\sum\limits_{j = 1}^{N}\;\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}}$in which t and t−δ represent points in time and X(t) and X(t−δ) areportions of images taken, respectively, at these two points in time. Thecorrelation measurement may be used in tracking a statistical evolutionof a portion of a video stream as compared to a portion of the referenceimage at time t−δ, and wherein values of said correlation measurementlarger than a predetermined threshold indicate fog. The at least onefeature may include a correlation based on a likelihood ratiodistribution represented as:

${d_{1}(t)} = {1 - {\min\limits_{j = {{all}\mspace{11mu}{pixels}}}{\left( {{LR}_{j},\frac{1}{{LR}_{j}}} \right)\mspace{14mu}{where}}}}$${LR}_{j} = {\frac{\left\lbrack {\frac{\left( {s(t)} \right)^{2} + \left( {s\left( {t - \delta} \right)} \right)^{2}}{2} + \frac{\left( {{X_{j}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}{2}} \right\rbrack^{2}}{\left( {s(t)} \right)^{2}\left( {s\left( {t - \delta} \right)} \right)^{2}}.}$The at least one feature may include an intensity range r(t) at a time trepresented as: r(t)=X_(max)(t)−X_(min)(t) where a maximum (Xmax) and aminimum (Xmin) intensity of a portion X of an image at a time t are usedto provide an indication of reduced image contrast for the portion X andmay be represented as:

${{\chi_{\max}(t)} = {\max\limits_{j = {{all}\mspace{11mu}{pixels}}}{X_{j}(t)}}},{{\chi_{\min}(t)} = {\min\limits_{j = {{all}\mspace{11mu}{pixels}}}{X_{j}(t)}}}$Creation of fog may be indicated by a rapid drop of r(t), and anincrease in r(t) may indicate fog dispersal, and wherein, r(t)decreasing below a threshold amount may indicate that fog is present.The at least one feature may include characterizing image sharpness of aportion X of an image using an intensity gradient. X and y gradientcomponents G at pixel i,j of a portion X of an image at a time t may bedefined as a left difference represented as: G_(i,j)^(x)(t)=X_(i,j)(t)=X_(i−1,j)(t) G_(i,j) ^(y)(t)=X_(i,j)(t)−X_(i−j,1)(t).X and y gradient components G at pixel i,j of a portion X of an image ata time t may be defined as a right difference represented as: G_(i,j)^(x)(t)=X_(i+1,j)(t)=X_(i,j)(t) G_(i,j) ^(y)(t)=X_(i,j+1)(t)−X_(i,j,)(t)(t). X and y gradient components G at pixel i,j may be defined as adouble-sided difference represented as:

${G_{i,j}^{x}(t)} = \frac{{X_{{i + 1},j}(t)} - {X_{{i - 1},j}(t)}}{2}$${G_{i,j}^{y}(t)} = {\frac{{X_{i,{j + 1}}(t)} - {X_{i,{j - 1}}(t)}}{2}.}$The intensity gradient may define a gradient in terms of differencesbetween pixel locations with time as a constant. The intensity gradientmay define a gradient in terms of pixel values between portions ofimages taken at different points in time. The at least one featureincludes characterizing image sharpness using an intensity gradient, andwherein said intensity gradient is determined using a portion of achange image. A large value of said intensity gradient may indicatesharp edges within a portion of an image. The at least one feature mayinclude a mean absolute gradient value represented as:

${{g_{a}^{x}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\;{pixels}}}}{{G_{i,j}^{x}(t)}}}}},{{g_{a}^{y}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}}}$such that creation of fog is signified by a rapid drop in at least oneof: g_(a) ^(x)(t) and g_(a) ^(y)(t). The at least one feature may anoverall average gradient characteristic represented as: g_(a)(t)=g_(a)^(x)(t)+g_(a) ^(y)(t). The at least one feature may an average gradientnorm, wherein a gradient norm G at pixel i,j may be represented as:G_(i,j) ^(n)(t)=√{square root over (G_(i,j) ^(x)(t)²+G_(i,j)^(y)(t)²)}{square root over (G_(i,j) ^(x)(t)²+G_(i,j) ^(y)(t)²)} for all“N” pixels within a portion of an image, and the average gradient normmay be represented as:

${g_{n}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{n}(t)}.}}}$Creation of fog may be related to a rapid drop in g_(n)(t) below apredetermined threshold value, and an increase in g_(n)(t) may indicatefog dispersal. The at least one feature may include maximum and minimumvalues of x and y components of a gradient norm G represented

as:${{g_{\max}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{G_{i,j}^{n}(t)}}},{{g_{\min}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{G_{i,j}^{n}(t)}}}$${{g_{\max}^{x}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{x}(t)}}}},{{g_{\min}^{x}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{n}(t)}}}}$${{g_{\max}^{y}(t)} = {\max\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}},{{g_{\min}^{y}(t)} = {\min\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{G_{i,j}^{y}(t)}}.}}}$The at least one feature may include a dynamic range of intensity changeincluding a standard deviation s_(d)(t,δ) of intensity change over somepredefined time interval, δ, defined as:

${s_{d}\left( {t,\delta} \right)} = \sqrt{\frac{1}{N}{\sum\limits_{j = {{all}\mspace{11mu}{pixels}}}\left( {{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}} \right)^{2}}}$and wherein a value of the standard deviation s_(d)(t,δ) is close tozero within some predetermined threshold if there is fog. The at leastone feature may include a mean absolute deviation of a portion from themean value of a portion of the change image represented as:

${d_{d}(t)} = {\frac{1}{N}{\sum\limits_{j = {{all}\mspace{11mu}{pixels}}}{{{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}}}}}$and wherein a value of the mean absolute deviation is close to zerowithin some predetermined threshold if there is fog. The at least onefeature may include a spatial moment of a portion of the change image,and wherein coordinates of a center of mass a portion of the changeimage D(t,δ) may be represented as:

${i_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{iD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}$${j_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{jD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}$and wherein, if the image change for a portion is uniform across theportion of the image, the coordinates are close to the geometric centerof the portion of the image indicating presence of fog. The at least onefeature may include higher order moments of a portion of a change imagerepresented as:

${M_{2,0}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2}{D_{i,j}\left( {t,\delta} \right)}}}$${M_{0,2}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}{D_{i,j}\left( {t,\delta} \right)}}}$The at least one feature may include a moment of inertia of a portion ofthe change image represented as:

${M_{i}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2} + \left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}} \right){{D_{i,j}\left( {t,\delta} \right)}.}}}$The at least one feature may include moments defined using averageabsolute values of pixels represented

as:${M_{1,0}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{i - {i_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}$${M_{0,1}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{j - {j_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}$${M_{i}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {{{i - {i_{c}\left( {t,\delta} \right)}}} + {{j - {j_{c}\left( {t,\delta} \right)}}}} \right){D_{i,j}\left( {t,\delta} \right)}}}$and wherein, if a portion of the change image is uniform, values forthese moments are larger than a predetermined threshold indicating apresence of fog. The computer program product may include executablecode that: determines that at least one of the following conditions ispresent for said portion of said image: an increase in overall imageintensity, a decrease in image sharpness, and a decrease in imagecontrast; determines an intermediate positive indicator for fog presenceif it is determined that said at least one of the following conditionsis present, and it is determined using said at least one visualcharacteristic that said change associated with said at least one visualcharacteristic is approximately uniform with respect to the portion ofthe image; and determines a final positive indicator for fog presence ifsaid intermediate positive indicator indicates that there is fog whichis confirmed by at least one other feature. The at least one otherfeature is a non-image feature. The at least one other feature mayinclude at least one of temperature, humidity and pressure. A pluralityof intermediate positive indicators may be used in determining saidfinal positive indicator. The computer program product may includeexecutable code that: distinguishes fog from one of a plurality of otherconditions, wherein said plurality of other conditions includes smokeand an aerosol dispersion. The portion may be an entire image. Theportion may include a plurality of regions of said image. Each of theplurality of regions may be a predefined shape in accordance withlighting and camera view. The at least one visual characteristic may bea frequency-based feature. The frequency-based feature may estimatemotion of an element of said portion. The computer program product mayinclude executable code that receives an image from a CCD camera. TheCCD camera may have an operational wavelength sensitivity betweenapproximately 770 and 1200 nanometers blocking visible light. The CCDcamera may be a conventional CCD camera with an operational wavelengthsensitivity between approximately 400 and 1200 nanometers. The CCDcamera may be used when it is determined that a view area is completelyobscured except for a predetermined space within which said CCD camerais included. The operational wavelength sensitivity of said CCD cameramay exclude a portion of the range between approximately 400 and 1200nanometers. The at least one excluded portion may have a rangecorresponding to one of: a light source and a device that emits withinsaid at least one excluded portion to filter out wavelengths within saidat least one excluded portion. The computer program product may include:executable code that receives an image from a camera with an associatedlight source wherein said camera is mounted opposite said associatedlight source within a viewing area. The viewing area may be an aircraftcargo bay, and said camera and said associated light source may bemounted within a predetermined distance from a ceiling of said aircraftcargo bay. The camera and said associated light source may be positionedat a same vertical and horizontal location on walls of said cargo bayarea. The CCD camera may have an operational wavelength sensitivityapproximating that of visible light.

In accordance with one aspect of the invention is a method for detectingsmoke comprising: determining portions of a plurality of images obtainedat different times; determining a region for each of the portions inaccordance with a predetermined pixel intensity, a minimum number ofneighboring pixels having said intensity which are connected to a pixelof interest, and a predetermined connectivity, said predeterminedconnectivity indicating particular pixel positions adjacent to a pixelof interest; and determining, using regions for said correspondingportions, whether the portions indicate a smoke condition. The methodmay be executed in a computer system. The portions of said images mayinclude a view of a ceiling gap of a cargo bay area in an aircraft. Themethod may also include: determining whether the portions indicate anon-smoke condition. The portions may indicate a smoke condition if theportions include a shrinking region of brightness with respect to achange in time. The portion may be entire frames. The portions may bedetermined in accordance with an image projection of a lighting sourcefor an opposite lighting view wherein a camera obtains an image usingonly a light source located opposite said camera. The plurality ofimages may be obtained using at least one camera receiving near infraredlight. The camera may be a CCD camera. The lighting may be used toproduce said opposite lighting view using a lighting source controlledby a system control unit. The determining whether the portions indicatea smoke condition may set an indicator to indicate one of a smoke and anon-smoke condition. The method may also include: using said indicatoras one of a plurality of inputs to determine whether a fire condition ispresent. The predetermined connectivity may be one of 4 and 8 indicatinga number of adjacent pixel positions used to evaluate a pixel ofinterest, and the method may also include: determining whether saidpixel of interest meets said predetermined connectivity by determiningif said pixel of interest has said minimum number of neighboring pixelsabove said predetermined pixel intensity, and whether said pixel ofinterest meets said predetermined pixel intensity. The pixel and allconnected neighboring pixels located in said portion may be included insaid region if said pixel of interest meets said predeterminedconnectivity and said predetermined pixel intensity. The minimum numberof neighboring pixels may be less than or equal to said predeterminedconnectivity. The method may also include: determining, for each of saidportions, if said region is shrinking. The method may also include:determining a feature for each of said portions, said feature using acount of bright and connected pixels included in said region for each ofsaid portions. The method may also include: determining for each pixelin a reference frame whether said each pixel meets specified criteria,said specified criteria including whether said each pixel meets saidpredetermined pixel intensity and has said minimum number of neighboringpixels meeting said predetermined pixel intensity in accordance withneighboring pixel positions indicated by said predeterminedconnectivity; determining for each pixel in a subsequent frame whethersaid each pixel meets said specified criteria; determining for eachpixel in said subsequent frame whether there has been a state change ofsaid each pixel wherein it is determined that there has been a statechange for said each pixel if said each pixel has changed from one of:meeting said criteria in said reference frame to not meeting saidcriteria in said subsequent frame, and not meeting said criteria in saidreference frame to meeting said criteria in said subsequent frame;determining a feature for said subsequent frame using a total number ofpixels determined as having a state change; and using said feature indetermining whether a smoke condition is present. The total number ofpixels having a state change may be compared to a threshold, and a smokecondition may be determined as being present when said total numberexceeds said threshold. The feature may be a difference in said totalnumber of pixels determined for two subsequent frames obtained at twopoints in time. The feature may be a ratio of said total number to anumber of bright and connected pixels included in said region associatedwith said reference frame. The method may also include: determining afirst quantity of pixels in a portion of a reference frame meetingspecified criteria, said specified criteria including whether each pixelin said portion meets said predetermined pixel intensity and has saidminimum number of neighboring pixels meeting said predetermined pixelintensity in accordance with neighboring pixel positions indicated bysaid predetermined connectivity; determining a second quantity of pixelsin a portion of a first subsequent frame meeting said specifiedcriteria; and using said first and second quantities in determiningwhether a smoke condition is present. The method may also include:determining a third quantity of pixels in a portion of a secondsubsequent frame meeting said specified criteria; determining a firstfeature value for said first subsequent frame that is a ratio using saidfirst and second quantities and a second feature value for said secondsubsequent frame that is a ratio using said first and third quantities;and using said feature values in determining whether a smoke conditionis present. The reference frame may be determined using an oppositecamera lighting view and determining a projection of a light source of arecorded image. The method may also include: determining said region byusing a starting pixel candidate in accordance with said light source.The method may also include: determining said region for each of saidportions using a starting pixel candidate located in a first row andcolumn position of said each portion, and wherein each pixel in each ofsaid portions are examined in accordance with specified criteria, saidspecified criteria including whether each pixel in said each portionmeets said predetermined pixel intensity and has said minimum number ofneighboring pixels meeting said predetermined pixel intensity inaccordance with neighboring pixel positions indicated by saidpredetermined connectivity. The method may also include: determiningregion shrinkage of said region of a first frame as compared to a secondframe. The region shrinkage may be determined using only pixelsinitially indicated as meeting said specified criteria in a referenceframe. The method may also include: determining said predetermined pixelintensity in accordance with a distribution of pixel intensity values ofan opposing camera lighting view of an image. At least the minimumnumber of neighboring pixels, said predetermined connectivity, and asmoke detection threshold may be selected in accordance with selectioncriteria including a first criteria that all fire conditions areproperly classified. The selection criteria may include a secondcriteria that smoke detection occurs before at least one conventionalfire detection unit. The selection criteria may include a third criteriathat minimizes a number of non-fire conditions properly classified. Themethod may include: determining a third quantity of pixels in a portionof a second subsequent frame meeting said specified criteria;determining a first feature value for said first subsequent frame thatis one of: an absolute value of a difference between said first quantityand said second quantity, and an absolute value of a difference betweensaid second quantity and another quantity associated with a framepreceding said first subsequent frame in time; determining a secondfeature value for said subsequent frame that is one of: an absolutevalue of a difference between said first quantity and said thirdquantity, and an absolute value of a difference between said secondquantity and said third quantity; and using said first and secondfeature values in determining whether a smoke condition is present. Thepredetermined connectivity may include two layers of pixels surroundinga pixel of interest, and the method may further comprise: determiningwhether said pixel of interest meets said predetermined connectivity bydetermining if said pixel of interest has said minimum number ofneighboring pixels above said predetermined pixel intensity in said twolayers, and whether said pixel of interest meets said predeterminedpixel intensity. The predetermined connectivity may be a predefinedshape with respect to said pixel of interest, and the method may furthercomprise: determining whether said pixel of interest meets saidpredetermined connectivity by determining if said pixel of interest hassaid minimum number of neighboring pixels above said predetermined pixelintensity in said predefined shape, and whether said pixel of interestmeets said predetermined pixel intensity. The predefined shape may beone of: a rectangle, a square, at least one horizontal row, and at leastone vertical row. The predefined shape may be selected in accordancewith a property of data being analyzed. The feature may be a ratio of afeature value associated with a current frame, FeatureValue(t), withrespect to a feature value associated with a reference frame,FeatureValue (0), represented as:

$\frac{{{{FeatureValue}(t)} - {{FeatureValue}(0)}}}{{FeatureValue}(0)}.$The feature value may be a value of one of the following features:number of bright and connected pixels in a connected bright region, meanpixel intensity, pixel intensity standard deviation, gradient mean, andgradient mean standard deviation. The feature may represent a relativecomparison of a feature value at a first point in time with respect to afeature values of the feature associated with a reference frame. Theregion may be determined in accordance with a time connectivity K, Kbeing greater than or equal to zero, K representing whether a pixel hasbeen included in at least K previous regions associated with K otherframes at different points in time.

In accordance with another aspect of the invention is a computer programproduct that detects detecting smoke comprising executable code that:determines portions of a plurality of images obtained at differenttimes; determines a region for each of the portions in accordance with apredetermined pixel intensity, a minimum number of neighboring pixelshaving said intensity which are connected to a pixel of interest, and apredetermined connectivity, said predetermined connectivity indicatingparticular pixel positions adjacent to a pixel of interest; anddetermines, using regions for said corresponding portions, whether theportions indicate a smoke condition. The portions of said images mayinclude a view of a ceiling gap of a cargo bay area in an aircraft. Thecomputer program product may include: executable code that determineswhether the portions indicate a non-smoke condition. The portions mayindicate a smoke condition if the portions include a shrinking region ofbrightness with respect to a change in time. The portions may be entireframes. The portions may be determined in accordance with an imageprojection of a lighting source for an opposite lighting view wherein acamera obtains an image using only a light source located opposite saidcamera. The plurality of images may be obtained using at least onecamera receiving near infrared light. The camera may be a CCD camera.The lighting used to produce said opposite lighting view may use alighting source controlled by a system control unit. The executable codethat determines may also include executable code that determines whetherthe portions indicate a smoke condition further comprises executablecode that sets an indicator to indicate one of a smoke and a non-smokecondition. The computer program product may also include: executablecode that uses said indicator as one of a plurality of inputs todetermine whether a fire condition is present. The predeterminedconnectivity may be one of 4 and 8 indicating a number of adjacent pixelpositions used to evaluate a pixel of interest, and the computer programproduct may also include: executable code that determines whether saidpixel of interest meets said predetermined connectivity by determiningif said pixel of interest has said minimum number of neighboring pixelsabove said predetermined pixel intensity, and whether said pixel ofinterest meets said predetermined pixel intensity. The pixel and allconnected neighboring pixels located in said portion may be included insaid region if said pixel of interest meets said predeterminedconnectivity and said predetermined pixel intensity. The minimum numberof neighboring pixels may be less than or equal to said predeterminedconnectivity. The computer program product may also include executablecode that determines, for each of said portions, if said region isshrinking. The computer program product may also include: executablecode that determines a feature for each of said portions, said featureusing a count of bright and connected pixels included in said region foreach of said portions. The computer program product may further compriseexecutable code that: determines for each pixel in a reference framewhether said each pixel meets specified criteria, said specifiedcriteria including whether said each pixel meets said predeterminedpixel intensity and has said minimum number of neighboring pixelsmeeting said predetermined pixel intensity in accordance withneighboring pixel positions indicated by said predeterminedconnectivity; determines for each pixel in a subsequent frame whethersaid each pixel meets said specified criteria; determines for each pixelin said subsequent frame whether there has been a state change of saideach pixel wherein it is determined that there has been a state changefor said each pixel if said each pixel has changed from one of: meetingsaid criteria in said reference frame to not meeting said criteria insaid subsequent frame, and not meeting said criteria in said referenceframe to meeting said criteria in said subsequent frame; determines afeature for said subsequent frame using a total number of pixelsdetermined as having a state change; and uses said feature indetermining whether a smoke condition is present. The computer programproduct may also comprise: executable code that compares said totalnumber of pixels having a state change to a threshold; and executablecode that determines a smoke condition as being present when said totalnumber exceeds said threshold. The feature may be a difference in saidtotal number of pixels determined for two subsequent frames obtained attwo points in time. The feature may be a ratio of said total number to anumber of bright and connected pixels included in said region associatedwith said reference frame. The computer program product may furthercomprise: executable code that: determines a first quantity of pixels ina portion of a reference frame meeting specified criteria, saidspecified criteria including whether each pixel in said portion meetssaid predetermined pixel intensity and has said minimum number ofneighboring pixels meeting said predetermined pixel intensity inaccordance with neighboring pixel positions indicated by saidpredetermined connectivity; determines a second quantity of pixels in aportion of a first subsequent frame meeting said specified criteria; anduses said first and second quantities in determining whether a smokecondition is present. The computer program product may further compriseexecutable code that: determines a third quantity of pixels in a portionof a second subsequent frame meeting said specified criteria; determinesa first feature value for said first subsequent frame that is a ratiousing said first and second quantities and a second feature value forsaid second subsequent frame that is a ratio using said first and thirdquantities; and uses said feature values in determining whether a smokecondition is present. The reference frame may be determined using anopposite camera lighting view and determining a projection of a lightsource of a recorded image. The computer program product may furthercomprise: executable code that determines said region by using astarting pixel candidate in accordance with said light source. Thecomputer program product may also include: executable code thatdetermines said region for each of said portions using a starting pixelcandidate located in a first row and column position of said eachportion, and wherein each pixel in each of said portions are examined inaccordance with specified criteria, said specified criteria includingwhether each pixel in said each portion meets said predetermined pixelintensity and has said minimum number of neighboring pixels meeting saidpredetermined pixel intensity in accordance with neighboring pixelpositions indicated by said predetermined connectivity. The computerprogram product may also include: executable code that determines regionshrinkage of said region of a first frame as compared to a second frame.The region shrinkage may be determined using only pixels initiallyindicated as meeting said specified criteria in a reference frame. Thecomputer program product may also include: executable code thatdetermines said predetermined pixel intensity in accordance with adistribution of pixel intensity values of an opposing camera lightingview of an image. At least the minimum number of neighboring pixels,said predetermined connectivity and a smoke detection threshold may beselected in accordance with selection criteria including a firstcriteria that all fire conditions are properly classified. The selectioncriteria may include a second criteria that smoke detection occursbefore at least one conventional fire detection unit. The selectioncriteria may include a third criteria that minimizes a number ofnon-fire conditions properly classified. The computer program productmay further comprise executable code that: determines a third quantityof pixels in a portion of a second subsequent frame meeting saidspecified criteria; determines a first feature value for said firstsubsequent frame that is one of: an absolute value of a differencebetween said first quantity and said second quantity, and an absolutevalue of a difference between said second quantity and another quantityassociated with a frame preceding said first subsequent frame in time;determines a second feature value for said subsequent frame that is oneof: an absolute value of a difference between said first quantity andsaid third quantity, and an absolute value of a difference between saidsecond quantity and said third quantity; and uses said first and secondfeature values in determining whether a smoke condition is present. Thepredetermined connectivity may include two layers of pixels surroundinga pixel of interest, and the computer program product may furthercomprise: executable code that determines whether said pixel of interestmeets said predetermined connectivity by determining if said pixel ofinterest has said minimum number of neighboring pixels above saidpredetermined pixel intensity in said two layers, and whether said pixelof interest meets said predetermined pixel intensity. The predeterminedconnectivity may be a predefined shape with respect to said pixel ofinterest, and the computer program product may further comprise:executable code that determines whether said pixel of interest meetssaid predetermined connectivity by determining if said pixel of interesthas said minimum number of neighboring pixels above said predeterminedpixel intensity in said predefined shape, and whether said pixel ofinterest meets said predetermined pixel intensity. The predefined shapemay be one of: a rectangle, a square, at least one horizontal row, andat least one vertical row. The predefined shape may be selected inaccordance with a property of data being analyzed. The feature may be aratio of a feature value associated with a current frame,FeatureValue(t), with respect to a feature value associated with areference frame, FeatureValue (0), represented as:

$\frac{{{{FeatureValue}(t)} - {{FeatureValue}(0)}}}{{FeatureValue}(0)}.$The feature value may be a value of one of the following features:number of bright and connected pixels in a connected bright region, meanpixel intensity, pixel intensity standard deviation, gradient mean, andgradient mean standard deviation. The feature may represent a relativecomparison of a feature value at a first point in time with respect to afeature values of the feature associated with a reference frame. Theregion may be determined in accordance with a time connectivity K, Kbeing greater than or equal to zero, K representing whether a pixel hasbeen included in at least K previous regions associated with K otherframes at different points in time.

In accordance with one aspect of the invention is a method for detectionof hotspots comprising: determining a connected bright region for aportion of a frame, said connected bright region including each pixel ofsaid portion which exceed a first predetermined threshold and has aminimum number of neighboring pixels exceeding said first predeterminedthreshold and being connected to said each pixel; and determining, usinga feature based on said connected bright region, whether a hotspotexists in accordance with a detection threshold. The minimum number ofneighboring pixels may be determined in accordance with a connectivityconfiguration indicating particular pixel positions adjacent to saideach pixel. The connectivity configuration may specify one of 4 and 8pixel positions adjacent to a pixel of interest. The method may furthercomprise: determining a first metric for a first portion of a firstframe using a first connected bright region associated with said firstframe at a first point in time; determining a second metric for a secondportion of a second frame using a second connected bright regionassociated with said second frame at a second point in time; anddetermining whether a hotspot exists using said first and said secondmetrics. The method may also include: performing a trend analysis usingsaid first and said second metrics to determine whether a hotspotexists. The feature may use the number of pixels included in saidconnected bright region. The portion may be one of: said entire frameand pixels selected from said frame in accordance with a predeterminedpattern. The portion may include every other pixel in a designated areaof said frame. The frame may be obtained using a thermal lighting viewin which no controlled light is switched on. The frame may be obtainedusing a camera that receives near infrared light. The firstpredetermined threshold may be determined offline in accordance with animage histogram of gray level distribution obtained using a thermallighting view with all controlled lighting switch off with a firecondition. The first threshold distribution may be determined inaccordance with predetermined criteria including at least one of:minimizing false positives, limitations of a camera used to obtain saidframe, image noise, and detection prior to a conventional fire detectionsystem. A reference frame may be subtracted from said frame.

The reference frame may be used to filter out light sources. A pixel insaid connected bright region may meet a time connectivity parameter K, Kbeing greater than or equal to zero, K representing whether a pixel hasbeen included in at least K previous connected bright regions associatedwith K other frames determined at different points in time. The methodmay also include: determining a ratio of a number of pixels included insaid connected bright region to a total number of pixels in saidportion; and determining if a hotspot exists in said frame if said ratioexceeds a hotspot detection threshold. The ratio may be represented as:

${{HotSpot}\mspace{14mu}{{Coverage}\left( t_{k} \right)}} = {\frac{100}{\left( {\left( {\frac{M}{2} - 1} \right) \times \left( {\frac{N}{2} - 1} \right)} \right)} \times {\sum\limits_{m = 1}^{({\frac{M}{2} - 1})}{\sum\limits_{n = 1}^{({\frac{N}{2} - 1})}\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\left( {{P\left( {i,{j;t_{k}}} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}}}}$and (M,N) designates frame dimensions; H₀ is the first predeterminedthreshold indicating a brightness threshold; C₀ is a minimum number ofneighboring pixels based on a selected connectivity type; P(i,j))tkrepresents a pixel value at time tk; anda time connectivity of order K applied to a pixel p of coordinates (i,j)means that:

$\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\left( {{P\left( {i,{j;t}} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}$for  t = t_(k), t_(k − 1), …  , t_(k − K)for K frames at different points in time t. The method may also include:setting an indicator if a hotspot is detected. The indicator may be oneof a plurality of inputs to data fusion processing producing as anoutput a system fire signal in accordance with said plurality of inputs.The determining of a connected bright region may be performed inresponse to detecting a first precondition using a global metric. Theglobal metric may characterize pixels and associated values of saidframe.

In accordance with another aspect of the invention is a computer programproduct that detects hotspots comprising executable code that:determines a connected bright region for a portion of a frame, saidconnected bright region including each pixel of said portion whichexceed a first predetermined threshold and has a minimum number ofneighboring pixels exceeding said first predetermined threshold andbeing connected to said each pixel; and determines, using a featurebased on said connected bright region, whether a hotspot exists inaccordance with a detection threshold. The minimum number of neighboringpixels may be determined in accordance with a connectivity configurationindicating particular pixel positions adjacent to said each pixel. Theconnectivity configuration may specify one of 4 and 8 pixel positionsadjacent to a pixel of interest.

The computer program product may further comprise executable code that:determines a first metric for a first portion of a first frame using afirst connected bright region associated with said first frame at afirst point in time; determines a second metric for a second portion ofa second frame using a second connected bright region associated withsaid second frame at a second point in time; and determines whether ahotspot exists using said first and said second metrics. The computerprogram product may further comprise: executable code that performs atrend analysis using said first and said second metrics to determinewhether a hotspot exists. The feature may use the number of pixelsincluded in said connected bright region. The portion may be one of:said entire frame, and pixels selected from said frame in accordancewith a predetermined pattern. The portion may include every other pixelin a designated area of said frame. The frame may be obtained using athermal lighting view in which no controlled light is switched on. Theframe may be obtained using a camera that receives near infrared light.The first predetermined threshold may be determined offline inaccordance with an image histogram of gray level distribution obtainedusing a thermal lighting view with all controlled lighting switch offwith a fire condition. The first threshold distribution may bedetermined in accordance with predetermined criteria including at leastone of: minimizing false positives, limitations of a camera used toobtain said frame, image noise, and detection prior to a conventionalfire detection system. A reference frame may be subtracted from saidframe. The reference frame may be used to filter out light sources. Apixel in the connected bright region may meet a time connectivityparameter K, K being greater than or equal to zero, K representingwhether a pixel has been included in at least K previous connectedbright regions associated with K other frames determined at differentpoints in time. The computer program product may further compriseexecutable code that: determines a ratio of a number of pixels includedin said connected bright region to a total number of pixels in saidportion; and determines if a hotspot exists in said frame if said ratioexceeds a hotspot detection threshold. The ratio may be represented as:

${{HotSpot}\mspace{14mu}{{Coverage}\left( t_{k} \right)}} = {\frac{100}{\left( {\left( {\frac{M}{2} - 1} \right) \times \left( {\frac{N}{2} - 1} \right)} \right)} \times {\sum\limits_{m = 1}^{({\frac{M}{2} - 1})}{\sum\limits_{n = 1}^{({\frac{N}{2} - 1})}\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\left( {{P\left( {i,{j;t_{k}}} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}}}}$and (M,N) designates frame dimensions; H₀ is the first predeterminedthreshold indicating a brightness threshold; C₀ is a minimum number ofneighboring pixels based on a selected connectivity type; P(i,j))tkrepresents a pixel value at time tk; and a time connectivity of order Kapplied to a pixel p of coordinates (i,j) means that:

$\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\left( {{P\left( {i,{j;t}} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}$for  t = t_(k), t_(k − 1), …  , t_(k − K)for K frames at different points in time t. The computer program productmay also include: executable code that sets an indicator if a hotspot isdetected. The indicator may be one of a plurality of inputs to datafusion processing producing as an output a system fire signal inaccordance with said plurality of inputs. The executable code thatdetermines a connected bright region may be responsive to executablecode that detects a first precondition using a global metric. The globalmetric may characterize pixels and associated values of said frame.

In accordance with aspect of the invention is a method fordistinguishing a smoke condition from a dust condition comprising:obtaining a first frame of video data; determining at least one featureof a portion of said first frame; and determining a smoke condition if athreshold value for said at least one feature is crossed, and, in thepresence of a dust condition, said threshold value is not crossed. Afire indicator may be set if the threshold value is crossed. At leastone feature may be an average absolute gray level intensity representedas:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i, j;t₀) is a pixel value at location (i,j) of a reference frameat time 0; and N_(m) and M_(m) are dimensions of said portion. The firstframe may be obtained using one of: an overhead lighting view in whichonly overhead controlled lights are turned on, a diagonal lighting viewin which only a light source opposite a camera obtaining said firstframe is on, and a pilot lighting view in which only a light sourceco-located with a camera obtaining said first frame is on. If thethreshold value is crossed, a smoke condition may be determined. Thethreshold value may be determined in accordance with a vibration levelof noise in a system. The method may also include: selecting saidthreshold in accordance with criteria that all fire conditions areproperly classified and an acceptable rate of dust cases are improperlyclassified. The criteria may include detecting a fire condition prior toa selected conventional smoke detector. The feature may have a largervalue in a smoke condition than a dust condition. The feature mayinclude a plurality of features each associated with at least onethreshold. The plurality of features may include at least two of: a meanintensity value of an average pixel intensity for all pixels in saidportion; a maximum pixel intensity value of a maximum pixel intensityfor all pixels in said portion; a number of pixels in a bright region,said number representing a number of pixels in said portion that are oneof: greater than a threshold intensity, and greater than a thresholdintensity and connected to a minimum number of neighboring pixels; amean norm of intensity gradient vector for all pixels in said portion;and a norm of the second order moment matrix calculated over all pixelsin said portion. A fire condition may be determined if any one of theplurality of features crosses an associated threshold. Differentfeatures may be determined and used in detecting a smoke condition inaccordance with the particular lighting view of a frame. The meanintensity value may be determined for a frame obtained in one of adiagonal and overhead lighting view, said maximum pixel intensity may bedetermined for a frame obtained in one of diagonal view, and said sizeof a brightness region may be determined for a frame obtained in one ofa diagonal and overhead lighting views. A different threshold may beused for each combination of feature and lighting view for at least onefeature. The plurality of features may include a feature that is a meanintensity represented as:

${{mean}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{P\left( {i,j} \right)}}}}$where:M represents a number of pixel rows in said portion; N representsa number of pixel columns in said portion; P is said portion of a frame;P(i,j) is a pixel intensity or gray level at pixel position i,j in P.The plurality of features may include a second feature that is a meannorm of a gradient vector represented as:

${{mgrad}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M - 1}{\sum\limits_{j = 1}^{N - 1}\sqrt{{G_{1}\left( {i,j} \right)}^{2} + {G_{2}\left( {i,j} \right)}^{2}}}}}$where G₁ and G₂ are given by:

G₁(i, j) = X(i + 1, j) − X(i, j) G₂(i, j) = X(i, j + 1) − X(i, j).A value of said second feature may decrease as an image decreases insharpness of detail. A third feature of said plurality of features maybe a norm of a second order moment matrix represented as:

${{norm}\; 2(P)} = {{norm}\left( \begin{bmatrix}{{SM}\; 20(P)} & {{SM}\; 11(P)} \\{{SM}\; 11(P)} & {{SM}\; 02(P)}\end{bmatrix} \right)}$where second order moments S M 20, S M 02 and S M11 are defined viaequations:

${{{Xcenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{iP}\left( {i,j} \right)}}}}};$${{{Ycenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{jP}\left( {i,j} \right)}}}}};$${{SM}\; 20(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {Xcenter}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 02(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {j - {Ycenter}} \right)^{2}{P\left( {i,j} \right)}\mspace{11mu}{and}}}}}$${{SM}\; 11(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {Xcenter}} \right)\left( {j - {Ycenter}} \right){{P\left( {i,j} \right)}.}}}}}$The plurality of features may include a fourth feature that is the sizeof a bright region represented as:

${{brsize}(P)} = {\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{T\left( {i,j} \right)}}}$where binary thresholded image T is defined through at least anintensity threshold. The bright region may be determined in accordancewith an intensity threshold and a connectivity factor. A fire conditionmay be determined if any one value of any one feature crosses athreshold. The method may also include: determining said first, saidsecond and said fourth features if said first frame is obtained using adiagonal lighting view in which said frame is obtained using only anopposing camera light; and determining said first, said second and saidthird features if said first frame is obtained using an overheadlighting view in which said frame is obtained using only overheadlights. At least one feature may be determined for multiple windows ofsaid portion. At least one of said plurality of features may bedetermined using a relative change expressed as a ratio of a first valueto a second value, said first value representing said feature for saidportion and said second value representing a steady state feature value.Each of said multiple windows may be determined in accordance with alocation of at least one light relative to location and field of view ofa camera acquiring frames. The plurality of features may include a fifthfeature that is a maximum pixel intensity value represented as:

${\max(P)} = {\max\limits_{\underset{{j = 1},N}{{i = 1},M}}{P\left( {i,j} \right)}}$where: M represents a number of pixel rows in said portion; N representsthe number of pixel columns in said portion; P is said portion; andP(i,j) is a pixel intensity or gray level at pixel position i,j in saidportion. The at least one feature may be a rate of change feature basedon an average absolute gray level, wherein the rate of change may becalculated as:

$\delta_{\mu} = {\frac{{\mu(t)} - {\mu\left( {t - {\Delta\; t}} \right)}}{\Delta\; t}\mspace{14mu}{where}\mspace{14mu}{\mu(t)}\mspace{14mu}{and}\mspace{14mu}{\mu\left( {t - {\Delta\; t}} \right)}}$are values of an average absolute intensity feature at times t and t−Δt,respectively, and wherein said average absolute gray level isrepresented as:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of a referenceframe at time 0; and N_(m) and M_(n), are dimensions of said portion. Avalue of said rate of change feature may be higher for a smoke conditionthan for a dust condition.

In accordance with another aspect of the invention is a method ofdetecting a fire condition comprising: determining a lighting viewassociated with a frame; if said lighting view is an opposite lightingview, determining a number of pixels associated with a portion of aframe in accordance with a lighting view of said frame, said number ofpixels representing a number of pixels in said portion which increase ordecrease by an amount exceeding a brightness threshold with respect to areference frame, each of said number of pixels being connected to aminimum number of neighboring pixels in terms of space, and determininga ratio of said number of pixels for a current frame with respect tosaid number of pixels of a reference frame; and if said ratio exceeds afirst threshold, determining that a fire condition exists, said firstratio being determined in accordance with the opposite lighting view.For a current frame at a time tk, said ratio may be represented as apercentage of fading with an opposite view configuration:

${{Fading}\left( t_{k} \right)} = {100 \times \frac{\sum\limits_{m = 1}^{M/S_{s}}{\sum\limits_{n = 1}^{N/S_{s}}\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}{\sum\limits_{j = {- 1}}^{j = 1}{{\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{k}}} \right) - {P_{Ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}}}}} > D_{0}} \right) > C_{0}} \right\}}}{{Fading}\left( t_{0} \right)}\%}$wherein Fading(t₀) is a number of bright and connected pixels generatedby an opposite light of a reference image represented by:

${{Fading}\left( t_{0} \right)} = {\sum\limits_{m = 1}^{M/S_{s}}{\sum\limits_{n = 1}^{N/S_{s}}\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}{\sum\limits_{j = {- 1}}^{j = 1}{P_{Ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}}} > D_{0}} \right) > C_{0}} \right\}}}$such that Fading(t₀) is non zero; (M,N) designates dimensions of saidportion; D₀ is said brightness threshold determined in accordance withan opposite lighting view; S_(s) is a sweeping step across one of ahorizontal and vertical directions; and C₀ is a clustering thresholdthat is said minimum number of neighboring pixels in terms of space.Each of said number of pixels in said current frame may exceed saidbrightness threshold and said minimum number of neighboring pixels for apredetermined number of previous samples representing a timeconnectivity, said predetermined number being greater than zero. Themethod may also include: determining if said lighting view is one of: anoverhead and near view lighting, and if so, determining a feature forsaid portion as a number of fading/glowing pixels represented

as:${{FG}\left( t_{k} \right)} = {\sum\limits_{m = 1}^{M/S_{s}}{\sum\limits_{n = 1}^{N/S_{s}}\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}{\sum\limits_{j = {- 1}}^{j = 1}{{{P\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{k}}} \right)} - {P_{Ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}}}}} > D_{0}} \right) > C_{0}} \right\}}}$wherein Do of FG(tk) is determined in accordance with one of saidoverhead and near lighting views; and determining a fire condition ifFG(tk) exceeds a second threshold selected in accordance with one ofsaid overhead and near lighting views. The opposite lighting view and atleast one of said overhead and near lighting views may be used indetermining whether a fire condition exists. A fire condition may bedetermined if at least one of said first and second thresholds areexceeded. The method may also include: determining whether Fading(t₀) isnon zero; and if Fading(t₀) is not non-zero, determining existence of asystem problem. The method may also include: in response to determiningan existence of a system problem, selecting a different feature for usewith said current frame other than Fading(t_(k)).

In accordance with another aspect of the invention is a computer programproduct that distinguishes a smoke condition from a dust conditioncomprising executable code that: obtains a first frame of video data;determines at least one feature of a portion of said first frame; anddetermines a smoke condition if a threshold value for said at least onefeature is crossed, and, in the presence of a dust condition, saidthreshold value is not crossed. The computer program product may includeexecutable cod that sets a fire indicator if said threshold value iscrossed. The computer program product may also have said at least onefeature be an average absolute gray level intensity represented as:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of a referenceframe at time 0; and N_(m) and M_(m) are dimensions of said portion. Thefirst frame may be obtained using one of: an overhead lighting view inwhich only overhead controlled lights are turned on, a diagonal lightingview in which only a light source opposite a camera obtaining said firstframe is on, and a pilot lighting view in which only a light sourceco-located with a camera obtaining said first frame is on. If saidthreshold value is crossed, a smoke condition may be determined. Thecomputer program product may also include executable code thatdetermines said threshold value in accordance with a vibration level ofnoise in a system. The computer program product may also include:executable code that selects said threshold in accordance with criteriathat all fire conditions are properly classified and an acceptable rateof dust cases are improperly classified. The criteria may includedetecting a fire condition prior to a selected conventional smokedetector. The feature may have a larger value in a smoke condition thana dust condition. The feature may include a plurality of features eachassociated with at least one threshold. The plurality of features mayinclude at least two of: a mean intensity value of an average pixelintensity for all pixels in said portion; a maximum pixel intensityvalue of a maximum pixel intensity for all pixels in said portion; anumber of pixels in a bright region, said number representing a numberof pixels in said portion that are one of: greater than a thresholdintensity, and greater than a threshold intensity and connected to aminimum number of neighboring pixels; a mean norm of intensity gradientvector for all pixels in said portion; and a norm of the second ordermoment matrix calculated over all pixels in said portion. A firecondition may be determined if any one of the plurality of featurescrosses an associated threshold. The computer program product may alsoinclude executable code that determines different features used indetecting a smoke condition in accordance with a particular lightingview of a frame. The mean intensity value may be determined for a frameobtained in one of a diagonal and overhead lighting view, said maximumpixel intensity is determined for a frame obtained in one of diagonalview, and said size of a brightness region is determined for a frameobtained in one of a diagonal and overhead lighting views. A differentthreshold may be used for each combination of feature and lighting viewfor at least one feature. The plurality of features may include afeature that is a mean intensity represented as:

${{mean}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{P\left( {i,j} \right)}}}}$where: M represents a number of pixel rows in said portion; N representsa number of pixel columns in said portion; P is said portion of a frame;and P(i,j) is a pixel intensity or gray level at pixel position i,j inP. The plurality of features may include a second feature that is a meannorm of a gradient vector represented as:

${{mgrad}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M - 1}{\sum\limits_{j = 1}^{N - 1}\sqrt{{G_{1}\left( {i,j} \right)}^{2} + {G_{2}\left( {i,j} \right)}^{2}}}}}$where G₁ and G₂ are given by:

G₁(i, j) = X(i + 1, j) − X(i, j) G₂(i, j) = X(i, j + 1) − X(i, j).A value of said second feature may decrease as an image decreases insharpness of detail. A third feature of said plurality of features maybe a norm of a second order moment matrix represented as:

${{norm}\; 2(P)} = {{norm}\left( \begin{bmatrix}{{SM}\; 20(P)} & {{SM}\; 11(P)} \\{{SM}\; 11(P)} & {{SM}\; 02(P)}\end{bmatrix} \right)}$where second order moments S M 20, S M 02 and S M 11 are defined viaequations:

${{Xcenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{{iP}\left( {i,j} \right)}}}}$${{Ycenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{{jP}\left( {i,j} \right)}}}}$

${{SM}\; 20(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {i - {Xcenter}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 02(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {j - {Ycenter}} \right)^{2}{P\left( {i,j} \right)}\mspace{14mu}{and}}}}}$${{SM}\; 11(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {i - {Xcenter}} \right)\left( {j - {Ycenter}} \right){{P\left( {i,j} \right)}.}}}}}$The plurality of features may include a fourth feature that is the sizeof a bright region represented as:

${{{brsize}(P)} = {\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{T\left( {i,j} \right)}}}},$where binary thresholded image T is defined through at least anintensity threshold. The computer program product may also includeexecutable code that determines said bright region in accordance with anintensity threshold and a connectivity factor. A fire condition may bedetermined if any one value of any one feature crosses a threshold. Thecomputer program product may also include executable code thatdetermines said first, said second and said fourth features if saidfirst frame is obtained using a diagonal lighting view in which saidframe is obtained using only an opposing camera light; and executablecode that determines said first, said second and said third features ifsaid first frame is obtained using an overhead lighting view in whichsaid frame is obtained using only overhead lights. At least one featuremay be determined for multiple windows of said portion. At least one ofsaid plurality of features may be determined using a relative changeexpressed as a ratio of a first value to a second value, said firstvalue representing said feature for said portion and said second valuerepresenting a steady state feature value. Each of said multiple windowsis determined in accordance with a location of at least one lightrelative to location and field of view of a camera acquiring frames. Theplurality of features may include a fifth feature that is a maximumpixel intensity value represented as:

${\max(P)} = {\underset{{j = 1},N}{\max\limits_{{i = 1},M}}\;{P\left( {i,j} \right)}}$where: M represents a number of pixel rows in said portion; N representsthe number of pixel columns in said portion; P is said portion; andP(i,j) is a pixel intensity or gray level at pixel position i,j in saidportion. The at least one feature may be a rate of change feature basedon an average absolute gray level, wherein the rate of change iscalculated as:

$\delta_{\mu} = \frac{{\mu(t)} - {\mu\left( {t - {\Delta\; t}} \right)}}{\Delta\; t}$where μ(t) and μ(t−μt) are values of an average absolute intensityfeature at times t and t−Δt, respectively, and wherein said averageabsolute gray level is represented as:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of a referenceframe at time 0; and N_(m) and M_(m) are dimensions of said portion. Avalue of said rate of change feature may be higher for a smoke conditionthan for a dust condition.

In accordance with another aspect of the invention is a computer programproduct that detects a fire condition comprising executable code that:determines a lighting view associated with a frame; if said lightingview is an opposite lighting view, determines a number of pixelsassociated with a portion of a frame in accordance with a lighting viewof said frame, said number of pixels representing a number of pixels insaid portion which increase or decrease by an amount exceeding abrightness threshold with respect to a reference frame, each of saidnumber of pixels being connected to a minimum number of neighboringpixels in terms of space, and determining a ratio of said number ofpixels for a current frame with respect to said number of pixels of areference frame; and if said ratio exceeds a first threshold, determinesthat a fire condition exists, said first ratio being determined inaccordance with the opposite lighting view. For a current frame at atime tk, said ratio may be represented as a percentage of fading with anopposite view configuration:

${{Fading}\left( t_{k} \right)} = {100 \times \frac{\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}\left\{ {\begin{pmatrix}{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{{{P\begin{pmatrix}{{{S_{s}m} + i},} \\{{{S_{s}n} + j};t_{k}}\end{pmatrix}} -}}}} \\{{{P_{Ref}\begin{pmatrix}{{{S_{s}m} + i},} \\{{{S_{s}n} + j};t_{0}}\end{pmatrix}}} > D_{0}}\end{pmatrix} > C_{0}} \right\}}}{{Fading}\left( t_{0} \right)}\%}$wherein Fading(t₀) is a number of bright and connected pixels generatedby an opposite light of a reference image represented by:

${{Fading}\left( t_{0} \right)} = {\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{P_{Ref}\begin{pmatrix}{{{S_{s}m} + i},} \\{{{S_{s}n} + j};t_{0}}\end{pmatrix}}}} > D_{0}} \right) > C_{0}} \right\}}}$such that Fading(t₀) is non zero; (M,N) designates dimensions of saidportion; D₀ is said brightness threshold determined in accordance withan opposite lighting view; S_(s) is a sweeping step across one of ahorizontal and vertical directions; and C₀ is a clustering thresholdthat is said minimum number of neighboring pixels in terms of space.Each of said number of pixels in said current frame may exceed saidbrightness threshold and said minimum number of neighboring pixels for apredetermined number of previous samples representing a timeconnectivity, said predetermined number being greater than zero. Thecomputer program product may also include: executable code thatdetermines if said lighting view is one of: an overhead and near viewlighting, and if so, determining a feature for said portion as a numberof fading/glowing pixels represented as:

${{FG}\left( t_{k} \right)} = {\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}{\quad\left\{ {\begin{pmatrix}{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{{{P\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{k}}} \right)} -}}}} \\{{{P_{Ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}} > D_{0}}\end{pmatrix} > C_{0}} \right\}}}}$wherein Do of FG(tk) is determined in accordance with one of saidoverhead and near lighting views; and executable code that determines afire condition if FG(tk) exceeds a second threshold selected inaccordance with one of said overhead and near lighting views. Theopposite lighting view and at least one of said overhead and nearlighting views may be used in determining whether a fire conditionexists. A fire condition may be determined if at least one of said firstand second thresholds are exceeded. The computer program product mayalso include: executable code that determines whether Fading(t₀) is nonzero; and executable code that, if Fading(t₀) is not non-zero,determines existence of a system problem. The computer program productmay also include: executable code that, in response to determining anexistence of a system problem, selects a different feature for use withsaid current frame other than Fading(t_(k)).

In accordance with one aspect of the invention is a method of detectinga fire condition comprising: determining at least one feature for aportion of a frame of video data; processing said at least one featureusing fuzzy logic and producing an output; and determining whether afire condition exists using said output. A second feature may beprocessed using said fuzzy logic and said second feature characterizesnon-visual data. The second feature may be a reading from a sensor. Thesecond feature may be one of: relative humidity and temperature. The atleast one feature may be based on pixel intensity of said portion. Theat least one feature may be an absolute average gray level representedby:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where P(i, j; t) is the pixel value of a pixel at location (i,j) andtime t; P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of areference frame at a time 0; and N_(m) and M_(m) are dimensions of saidportion of said frame. The at least one feature may be obtained inaccordance with an opposite lighting view. The processing may alsocomprise: projecting said at least one feature using a rule into atleast one fuzzy set; applying a logical operator to determine a degreeof support for said rule; and determining said output in accordance withsaid degree of support. The method may also include: comparing saidoutput to a threshold; and determining whether a fire condition existsin response to said comparing. The output may be a probability ofconfirmation representing a degree of certainty that a fire conditionexists. The processing may use a Mamdani approach. The output, y, may berepresented as:

$y = {{Df}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{Ag}}}\begin{bmatrix}{{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Op}}}\begin{pmatrix}{{{MF}_{ar}\left( x_{ar} \right)},} \\{{MF}_{br}\left( x_{br} \right)}\end{pmatrix}}},{MF}_{cr}} \right)},} \\{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Op}}}\begin{pmatrix}{{{MF}_{ar}\left( x_{ar} \right)},} \\{{MF}_{br}\left( x_{br} \right)}\end{pmatrix}}},{MF}_{cr}} \right)}\end{bmatrix}} \right)}$wherein R represents one or more rules involved in a inference fuzzysystem; A_(r) represents one or more antecedents per rule “r”, said ruleincluding one or more antecedents and a rule consequent Cr, each pair ofantecedents is connected by a logical operator; x_(ar) represents aninput value of an antecedent “a” of the rule “r”; MF_(ar) represents amembership function at an antecedent “a” of a rule “r”; MF_(cr)represents a membership function at a unique consequent “c” of a rule“r”; μ_(r)(α) represents a membership degree at a given antecedent “a”;Ip(.,.) represents an implication method; Ag(.,.) represents anaggregation method; Op(.,.) represents one of a logical T-norm andS-norm operator; W_(r) represents a weight of a rule “r”; Df(.,.)represents a defuzzification method; Fo represents a resulting fuzzy setof all rules; and y represents said output of the fuzzy inferencesystem. The processing may use an area centroid approach as adefuzzification operator with a Mamdani-type fuzzy inference system. Theoutput, y, may be represented as:

$y = {{CENTROID}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{MAX}}}\begin{bmatrix}{{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\begin{pmatrix}{{\Gamma_{ar}\left( x_{ar} \right)},} \\{\Gamma_{br}\left( x_{br} \right)}\end{pmatrix}}},\Gamma_{cr}} \right)},} \\{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\begin{pmatrix}{{\Gamma_{ar}\left( x_{ar} \right)},} \\{\Gamma_{br}\left( x_{br} \right)}\end{pmatrix}}},\Gamma_{cr}} \right)}\end{bmatrix}} \right)}$where Γ stands for a Gaussian membership function. The method may alsoinclude: comparing y to a threshold; and determining a fire condition ify exceeds said threshold. The at least three features may be processedusing said fuzzy logic, said at least three features including:temperature, relative humidity, and an absolute value of an average greylevel of pixel intensity for said portion. Fuzzy representations of saidrelative humidity may be represented using a membership function withthree overlapping regions, each of said three overlapping regions,respectively, being associated with a dry condition, a humid condition,and a foggy condition. Fuzzy representations of said relative humiditymay be represented using a membership function with two non-overlappingregions, each of said two non-overlapping regions, respectively, beingassociated with a dry condition and a humid condition. Overlap of two ormore of said regions may increase as inaccuracy of a sensor recordingrelative humidity increases. Fuzzy representations of said temperaturemay be represented using a membership function with three overlappingregions, each of said three overlapping regions, respectively, beingassociated with a low temperature condition, a medium temperaturecondition, and a large temperature condition. Fuzzy representations ofsaid absolute value of an average grey level of pixel intensity may berepresented using a membership function with three overlapping regions,each of said three overlapping regions, respectively, being associatedwith a low intensity condition, a medium intensity condition, and alarge intensity condition. Y may be a probability of confirmationrepresenting a degree of certainty that a fire condition exists. Y maybe a defuzzified value represented as:

${{Probability}\mspace{14mu}{of}\mspace{14mu}{confirmation}} = \frac{\sum\limits_{i = 1}^{N}\;{{\,_{i}i} \times {{area}(i)}}}{\sum\limits_{i = 1}^{N}\;{{area}(i)}}$where area(i) is a membership function of an aggregated fuzzy outputfunction at a sample i; and N is a number of samples defined by a finalfuzzy output shape and a sampling period. Membership sets of saidprobability of confirmation may be selected to have a minimum overlap.The probability of confirmation may be used to make a finaldetermination about a fire condition.

In accordance with another aspect of the invention is a method ofsetting an indicator comprising: determining at least one feature for aportion of a frame of video data; processing said at least one featureusing fuzzy logic and producing an output; and determining whether toset said indicator positively indicating a condition using said output.The processing may use at least one additional feature characterizingnon-visual data. The at least one additional feature may include areading from a sensor.

In accordance with another aspect of the invention is a computer programproduct that detects a fire condition comprising executable code that:determines at least one feature for a portion of a frame of video data;processes said at least one feature using fuzzy logic and producing anoutput; and determines whether a fire condition exists using saidoutput. The computer program product may also include executable codethat processes a second feature using said fuzzy logic and said secondfeature characterizes non-visual data. The second feature may be areading from a sensor. The second feature may be one of: relativehumidity and temperature. The at least one feature may be based on pixelintensity of said portion. The at least one feature may be an absoluteaverage gray level represented by:

${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is the pixel value of a pixel at location (i,j) andtime t; P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of areference frame at a time 0; and N_(m) and M_(m) are dimensions of saidportion of said frame. The at least one feature may be obtained inaccordance with an opposite lighting view. The executable code thatprocesses may further comprise executable code that: projects said atleast one feature using a rule into at least one fuzzy set; applies alogical operator to determine a degree of support for said rule; anddetermines said output in accordance with said degree of support. Thecomputer program product may also include, executable code that:compares said output to a threshold; and determines whether a firecondition exists in response to said comparing. The output may be aprobability of confirmation representing a degree of certainty that afire condition exists. The executable code that processes may use aMamdani approach. The output, y, may be represented as:

$y = {{Df}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{Ag}}}\begin{bmatrix}{{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Op}}}\begin{pmatrix}{{{MF}_{ar}\left( x_{ar} \right)},} \\{{MF}_{br}\left( x_{br} \right)}\end{pmatrix}}},{MF}_{cr}} \right)},} \\{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{OP}}}\begin{pmatrix}{{{MF}_{ar}\left( x_{ar} \right)},} \\{{MF}_{br}\left( x_{br} \right)}\end{pmatrix}}},{MF}_{cr}} \right)}\end{bmatrix}} \right)}$wherein R represents one or more rules involved in a inference fuzzysystem; A_(r) represents one or more antecedents per rule “r”, said ruleincluding one or more antecedents and a rule consequent Cr, each pair ofantecedents is connected by a logical operator; x_(ar) represents aninput value of an antecedent “a” of the rule “r”; MF_(ar) represents amembership function at an antecedent “a” of a rule “r”; MF_(cr),represents a membership function at a unique consequent “c” of a rule“r”; μ_(r)(a) represents a membership degree at a given antecedent “a”;Ip(.,.) represents an implication method; Ag(.,.) represents anaggregation method; Op(.,.) represents one of a logical T-norm andS-norm operator; W_(r) represents a weight of a rule “r”; Df(.,.)represents a defuzzification method; Fo represents a resulting fuzzy setof all rules; and y represents said output of the fuzzy inferencesystem. The executable code that processes may use an area centroidapproach as a defuzzification operator with a Mamdani-type fuzzyinference system. The output, y, may be represented as:

$y = {{CENTROID}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{MAX}}}\begin{bmatrix}{{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\begin{pmatrix}{{\Gamma_{ar}\left( x_{ar} \right)},} \\{\Gamma_{br}\left( x_{br} \right)}\end{pmatrix}}},\Gamma_{cr}} \right)},} \\{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\begin{pmatrix}{{\Gamma_{ar}\left( x_{ar} \right)},} \\{\Gamma_{br}\left( x_{br} \right)}\end{pmatrix}}},\Gamma_{cr}} \right)}\end{bmatrix}} \right)}$where Γ stands for a Gaussian membership function. The computer programproduct may further comprise executable code that: compares y to athreshold; and determines a fire condition if y exceeds said threshold.The at least three features may be processed using said fuzzy logic,said at least three features including: temperature, relative humidity,and an absolute value of an average grey level of pixel intensity forsaid portion. Fuzzy representations of said relative humidity may berepresented using a membership function with three overlapping regions,each of said three overlapping regions, respectively, being associatedwith a dry condition, a humid condition, and a foggy condition. Fuzzyrepresentations of said relative humidity may be represented using amembership function with two non-overlapping regions, each of said twonon-overlapping regions, respectively, being associated with a drycondition and a humid condition. Overlap of two or more of said regionsmay increase as inaccuracy of a sensor recording relative humidityincreases. Fuzzy representations of said temperature may be representedusing a membership function with three overlapping regions, each of saidthree overlapping regions, respectively, being associated with a lowtemperature condition, a medium temperature condition, and a largetemperature condition. Fuzzy representations of said absolute value ofan average grey level of pixel intensity may be represented using amembership function with three overlapping regions, each of said threeoverlapping regions, respectively, being associated with a low intensitycondition, a medium intensity condition, and a large intensitycondition. Y may be a probability of confirmation representing a degreeof certainty that a fire condition exists. Y may be a defuzzified valuerepresented as:

${{Probability}\mspace{14mu}{of}\mspace{14mu}{confirmation}} = \frac{\sum\limits_{i = 1}^{N}\;{{\,_{i}i} \times {{area}(i)}}}{\sum\limits_{i = 1}^{N}\;{{area}(i)}}$where: area(i) is a membership function of an aggregated fuzzy outputfunction at a sample i; N is a number of samples defined by a finalfuzzy output shape and a sampling period. Membership sets of theprobability of confirmation may be selected to have a minimum overlap.The probability of confirmation may be used to make a finaldetermination about a fire condition.

In accordance with another aspect of the invention is a computer programproduct that sets an indicator comprising executable code that:determines at least one feature for a portion of a frame of video data;processes said at least one feature using fuzzy logic and producing anoutput; and determines whether to set said indicator positivelyindicating a condition using said output. The executable code thatprocesses may use at least one additional feature characterizingnon-visual data. The at least one additional feature may include areading from a sensor.

In accordance with one aspect of the invention is a method of analyzingvisual data, comprising: obtaining a current frame of visual data;determining a number of segments of the current frame; and determiningthat the current frame is not indicative of smoke based a criteria thatvaries according to the number of segments in the current frame. Themethod may also include: obtaining a background frame of visual data;and determining a number of segments of the background frame. Thecriteria may also vary according to the number of segments in thebackground frame. The criteria may be the difference between the numberof segments of the current frame and the number of segments of thebackground frame and wherein it may be determined that the current frameis not indicative of smoke if the difference is greater than apredetermined value. The method may include: if the difference betweenthe number of segments of the current frame and the number of segmentsof the background frame is not greater than a predetermined value,performing follow on processing to determine if the current frame isindicative of smoke. The segments may be closed loop segments. Thesegments may be segments of a particular length or greater. The segmentsmay be segments of a particular length or smaller. The segments may besegments of a particular curvature or greater. The segments may besegments of a particular curvature or smaller. The number of segments ofthe current frame may vary according to a number of edges of the currentframe. The number of segments of the background frame may vary accordingto a number of edges of the background frame. The criteria may varyaccording to standard deviation of frame intensity. The criteria mayvary according to standard deviation of frame intensity. The criteriamay vary according to a value of a gradient norm and higher statisticsthereof. The criteria may vary according to a value of a gradient normand higher statistics thereof. The criteria may vary according to a rateof change of number of segments.

In accordance with another aspect of the invention is computer softwarethat analyzes visual data, comprising: executable code that obtains acurrent frame of visual data; executable code that determines a numberof segments of the current frame; and executable code that determinesthat the current frame is not indicative of smoke based a criteria thatvaries according to the number of segments in the current frame. Thecomputer software may also include: executable code that obtains abackground frame of visual data; and executable code that determines anumber of segments of the background frame. The criteria also may varyaccording to the number of segments in the background frame. Thecriteria may be the difference between the number of segments of thecurrent frame and the number of segments of the background frame andwherein it may be determined that the current frame is not indicative ofsmoke if the difference is greater than a predetermined value. Thecomputer software may include: executable code that performs follow onprocessing to determine if the current frame is indicative of smoke ifthe difference between the number of segments of the current frame andthe number of segments of the background frame is not greater than apredetermined value. The segments may be at least one of: closed loopsegments, segments of a particular length or greater, segments of aparticular length or smaller, segments of a particular curvature orgreater, segments of a particular curvature or smaller, and segments ofthe current frame may vary according to a number of edges of the currentframe. The number of segments of the background frame may vary accordingto a number of edges of the background frame. The criteria may varyaccording to standard deviation of frame intensity. The criteria mayvary according to standard deviation of frame intensity. The criteriamay vary according to a value of a gradient norm and higher statisticsthereof. The criteria may vary according to a value of a gradient normand higher statistics thereof. The criteria may vary according to a rateof change of number of segments.

In accordance with one aspect of the invention is a system for acquiringcamera data in a space, comprising: a plurality of cameras disposed inthe space; a first plurality of illumination units wherein each of thefirst plurality of illumination units is disposed proximal to one of thecameras; a second plurality of illumination units disposed overhead inthe space; and a control unit that controls actuation of theillumination units and the cameras. The system may include: a pluralityof filters that filter energy provided to the cameras, wherein thefilters pass energy corresponding to the output of the illuminationunits. The filters may pass light having a wavelength of aboveapproximately 800 nm. The control unit may actuate differentcombinations of illumination units while the cameras acquire data. Thedifferent combinations may be selected from one or more of thefollowing: all illumination units on, all illumination units off, onlythe second plurality of illumination units on, and only a subset of thefirst plurality of illumination units on.

The cameras may be CCD cameras. The first and second plurality ofillumination units may emit light in the NIR band. The filters mayfilter out visible light. The cameras may be CCD cameras and the firstand second plurality of illumination units may emit light in the NIRband.

In accordance with another aspect of the invention is a system foracquiring camera data in a space, comprising: cameras means foraccepting camera data; a first plurality of illumination unit meansdisposed proximal to the camera means; a second plurality ofillumination unit means disposed overhead in the space; and controlmeans for controlling actuation of the illumination unit means and thecamera means. The system may include: a plurality of filters means forfiltering energy provided to the cameras and for passing energycorresponding to the output of the illumination units. The filter meansmay pass light having a wavelength of above approximately 800 nm. Thecontrol means may actuate different combinations of illumination unitswhile the cameras acquire data.

In accordance with another aspect of the invention is a method ofacquiring data in a space, comprising: placing a plurality of cameras inthe space; placing a plurality of illumination units in the space,wherein some of the illumination units are overhead in the space andsome of the illumination units are associated with each of the cameras;and actuating the illumination units while the cameras acquire the data.Actuating the illumination units may include actuating differentcombinations of illumination units while the cameras acquire data. Thedifferent combinations may be selected from one or more of thefollowing: all illumination units on, all illumination units off, andonly a subset of the plurality of illumination units on. The method mayalso include: filtering out light having a particular range ofwavelengths. The particular range of wavelengths includes visible light.The cameras may be CCD cameras and the illumination units may emit lightin the NIR band.

In accordance with another aspect of the invention is computer softwarethat acquires data in a space, comprising: executable code that actuatesa plurality of cameras; and executable code that actuates a plurality ofillumination units while the cameras acquire the data, wherein differentcombinations of illumination units to be actuated are selected from oneor more of the following: all illumination units on, all illuminationunits off, and only a subset of the plurality of illumination units on.The computer software may include: executable code that causesundesirable light to be filtered out.

In accordance with another aspect of the invention is a method ofcompensating for ambient light in connection with video data collection,comprising: obtaining at least one reference frame of data correspondingto no illumination units being actuated; obtaining a plurality of framesof data while at least one illumination unit is actuated; and adjustingeach of the frames of data by subtracting therefrom a framecorresponding to the at least one reference frame. A different referenceframe may be obtained prior to obtaining each of the plurality of framesof data. Obtaining at least one reference frame may include: obtaining afirst reference frame prior to obtaining each of the plurality of framesof data; obtaining a second reference frame after obtaining each of theplurality of frames of data; and averaging the first and secondreference frames to provide the frame corresponding to the at least onereference frame. The first reference frame for a particular iterationmay be the second reference frame for a previous iteration. The at leastone reference frame may be obtained prior to obtaining the plurality offrames. The method may also include: periodically obtaining a newreference frame. The method may include: adjusting intensity of the atleast one illumination unit to avoid pixel saturation. The method mayfurther comprise: adjusting camera settings to avoid pixel saturation.The method may also include: compensating for differences in gainassociated with the at least one reference frame and the plurality offrames of data.

In accordance with another aspect of the invention is software thatcompensates for ambient light in connection with video data collection,comprising: executable code that obtains at least one reference frame ofdata corresponding to no illumination units being actuated; executablecode that obtains a plurality of frames of data while at least oneillumination unit is actuated; and executable code that adjusts each ofthe frames of data by subtracting therefrom a frame corresponding to theat least one reference frame. A different reference frame may beobtained prior to obtaining each of the plurality of frames of data. Theexecutable code that obtains at least one reference frame may includeexecutable code that obtains a first reference frame prior to obtainingeach of the plurality of frames of data, executable code that obtains asecond reference frame after obtaining each of the plurality of framesof data, and executable code that averages the first and secondreference frames to provide the frame corresponding to the at least onereference frame. The first reference frame for a particular iterationmay be the second reference frame for a previous iteration. The at leastone reference frame may be obtained prior to obtaining the plurality offrames. The computer software may include: executable code thatperiodically obtains a new reference frame. The computer software mayinclude: executable code that adjusts intensity of the at least oneillumination unit to avoid pixel saturation. The computer software mayalso include: executable code that adjusts camera settings to avoidpixel saturation. The computer software may further comprise: executablecode that compensates for differences in gain associated with the atleast one reference frame and the plurality of frames of data.

BRIEF DESCRIPTION OF DRAWINGS

Features and advantages of the present invention will become moreapparent from the following detailed description of exemplaryembodiments thereof taken in conjunction with the accompanying drawingsin which:

FIG. 1 shows hardware for implementing the system described herein.

FIG. 2 is a data flow diagram illustrating operation of the systemdescribed herein.

FIG. 3 is a flow chart illustrating determination of video frame energyaccording to the system described herein.

FIG. 4 is a graph illustrating an energy indicator as a function of timefor video frames corresponding to a fire condition according to thesystem described herein.

FIG. 5 is a graph illustrating a first order rate of change for anenergy indicator as a function of time for video frames corresponding toa fire condition according to the system described herein.

FIG. 6 is a graph illustrating an energy indicator for IR energy as afunction of time for video frames corresponding to a fire conditionaccording to the system described herein.

FIG. 7 is a graph illustrating a first order rate of change for anenergy indicator for IR energy as a function of time for video framescorresponding to a fire condition according to the system describedherein.

FIG. 8 is a graph illustrating an energy indicator as a function of timefor video frames corresponding to a smoke condition according to thesystem described herein.

FIG. 9 is a graph illustrating an energy indicator as a function of timefor video frames corresponding to a fog condition according to thesystem described herein.

FIG. 10 is a graph illustrating a first order rate of change of anenergy indicator as a function of time for video frames corresponding toa smoke condition according to the system described herein.

FIG. 11 is a graph illustrating a first order rate of change of anenergy indicator as a function of time for video frames corresponding toa fog condition according to the system described herein.

FIG. 12 is a graph illustrating a second order rate of change of anenergy indicator as a function of time for video frames corresponding toa smoke condition according to the system described herein.

FIG. 13 is a graph illustrating a second order rate of change of anenergy indicator as a function of time for video frames corresponding toa fog condition according to the system described herein.

FIG. 14 is a diagram illustrating edge detection and comparisonaccording to the system described herein.

FIG. 15 is a graph illustrating average edge intensity for video framescorresponding to a smoke condition compared to background as a functionof time according to the system described herein.

FIG. 16 is a graph illustrating average edge intensity for successivevideo frames corresponding to a smoke condition as a function of timeaccording to the system described herein.

FIG. 17 is a graph illustrating average edge intensity for video framescorresponding to a fog condition compared to background as a function oftime according to the system described herein.

FIG. 18 is a graph illustrating average edge intensity for successivevideo frames corresponding to a fog condition as a function of timeaccording to the system described herein.

FIG. 19 is a diagram illustrating an aspect of a multiscale approachused in the system described herein.

FIG. 20 is a diagram illustrating a tree structure that facilitates themultiscale approach used in the system described herein.

FIG. 21 is a diagram illustrating another tree structure thatfacilitates the multiscale approach used in the system described herein.

FIG. 22 is a diagram illustrating another aspect of a multiscaleapproach used in the system described herein.

FIG. 23 is a diagram illustrating an example of an image representedaccording to the multiscale approach used in the system describedherein.

FIG. 24 is a diagram illustrating use of Principal Component Analysis(PCA) in connection with the system described herein.

FIG. 25 is a diagram illustrating application of PCA on a backgroundframe and a frame corresponding to a fire condition according to thesystem described herein.

FIG. 26 is a diagram illustrating use of a neural net according to thesystem described herein.

FIGS. 27-31 are diagrams illustrating use of a Hidden Markov Model inconnection with the system described herein.

FIGS. 32-35 are diagrams illustrating use of a multi-model estimatoraccording to the system described herein.

FIG. 36 is an example of components that may be used in connection withviewing a cargo bay area to obtain video information used in fogdetection;

FIG. 37 is an example of data flow between components using data fusiontechniques in fog detection;

FIG. 38 is a flowchart of a first method of fog detection that may beincluded in an embodiment;

FIG. 39 is a flowchart of a second method of fog detection that may beincluded in an embodiment;

FIG. 40 is an example representation of the data flow of the methodsteps of FIG. 39;

FIG. 41 is a flowchart of a third method of fog detection that may beincluded in an embodiment;

FIG. 42 is an example representation of the data flow of the methodsteps of FIG. 41;

FIG. 43 is an example of an embodiment of a rectangular-shaped cargo bayarea;

FIGS. 44, 45A, 45B and 45C are examples of embodiment of different pixelconnectivities;

FIG. 46 is a flowchart of steps of one embodiment for detection ofsmoke;

FIG. 47 is a flowchart of steps of one embodiment for determining aconnected bright region;

FIG. 48 is a flowchart of processing steps of one embodiment fordetermining a test region using the opposite camera light;

FIGS. 49-50 are representations of an image frame in a coordinatesystem;

FIG. 51 is a flowchart of processing steps of one embodiment fordetermining brightness or intensity threshold;

FIG. 52 is an illustration of an image frame obtained with the oppositelighting view;

FIG. 53 is an illustration of histograms of grey level distribution;

FIGS. 54, 55, 56, 57, 58 and 59 illustrate detection performance of theshrinking region;

FIG. 60 is a flowchart of steps of an embodiment for hotspot detectionusing growing regions;

FIG. 61 is a flowchart of steps of one embodiment for determining thebrightness threshold;

FIG. 62 is an example of an image obtained using a dark or thermallighting view;

FIG. 63 are example histograms of grey scale values using the image ofFIG. 62;

FIG. 64A is a graphical illustration of the number of bright andconnection pixels with the thermal lighting view;

FIG. 64B is an illustration of the time connectivity that may be usedwith connected bright regions;

FIG. 65 is a flowchart of steps of one embodiment for hotspot detection;

FIG. 66 is an example of two representations of how hotspot indicatorsmay be used with system components for fire detection;

FIG. 67 is an example of one configuration of a system in an area beingmonitored for fire detection;

FIG. 68 is a flowchart of steps of one embodiment for determiningdetection thresholds;

FIG. 69 is flowchart of steps of one embodiment for detection a fire;

FIG. 70 is an example of an embodiment of a system, or componentsthereof, that may use the multi-feature based thresholding processingdescribed herein;

FIG. 71 is an illustration of a fuzzy set and conventional sets for afirst example;

FIG. 72 is a graphical illustration of a continuous variation of a fuzzymembership function;

FIG. 73 is an example illustrating steps of one embodiment forimplementing IF-THE rules with fuzzy logic;

FIG. 74 is an illustration of an example after aggregation;

FIG. 75 is a graphical representation of different defuzzificationmethods for example universe of discourses;

FIGS. 76-81 are examples of a graphical illustrations of membershipfunctions that may be used in an embodiment for smoke detection;

FIG. 82 is a representation of one embodiment of a fuzzy inferenceengine that may be used in fire detection and verification;

FIGS. 83-86 are example illustrations of the decision surface of a firedetection system at different fixed frame intensities;

FIG. 87-90 are example illustrations of the decision surface of a firedetection system at different temperatures;

FIGS. 91-93 are example illustrations of the decision surface atdifferent fixed relative humidity values;

FIGS. 94-95 are example representations of how the fuzzy smoke detectormay be used in connection with other system components for firedetection;

FIG. 96 is an image captured with a container in front of the camera ina simulation of a small gap in a cargo bay area filled with containers;

FIG. 97 is an image illustrating the result of applying edge estimationtechniques to the image of FIG. 96;

FIG. 98 is an image showing a frame from the scene of FIG. 96 capturedafter spreading some feathers in an area;

FIG. 99 is an image illustrating the result of applying the edgeestimation techniques to the image with the feathers of FIG. 98;

FIG. 100 is an image corresponding to a smoky scene after smoldering acard box behind a container;

FIG. 101 is an image illustrating the result of applying edge estimationtechniques to the image of FIG. 100;

FIG. 102 is a flowchart of steps of one embodiment performed inconnection with the system of FIG. 1;

FIG. 103 is a flowchart of steps of another embodiment performed inconnection with the system of FIG. 1;

FIG. 104 is a diagram illustrating a system in which a cargo videocontrol unit is coupled to a light and camera arrangement;

FIG. 105 is a flowchart of steps of one embodiment performed inconnection with acquiring data under various lighting scenarios;

FIG. 106 is a flowchart of steps of one embodiment performed inconnection with a system for compensating unpredictable ambient light;

FIG. 107 is a flowchart of steps of an alternative embodiment forcompensating for ambient light;

FIG. 108 is a flowchart of steps performed in connection with analternative embodiment for compensating for ambient light;

FIG. 109 is flowchart of steps performed in connection with analternative embodiment for compensating for ambient light; and

FIG. 110 is a flowchart of steps performed in connection with yetanother embodiment for compensating for ambient light.

DESCRIPTION OF EMBODIMENT(S)

Referring to FIG. 1, a diagram 100 shows a system for monitoring andautomatic detection and verification of fire within aircraft. The systemdescribed herein may be seen as a particular application of a moregeneral Autonomous Vision System (AVS) which is a concept for a familyof products. The AVS provides a user with a tireless automatedsurveillance capability to monitor various elements of the aircraftintegrity. The system may be used in applications where surveillance isneeded and simple decisions for immediate corrective actions are welldefined. Most of the hardware and software described herein isexpandable to various applications of the AVS where analysis of “visual”phenomena is expected.

The system monitors a plurality of aircraft cargo bays 102-104 todetect/verify the presence of fire. The cargo bay 102 includes an IR(infrared) camera 112, two CCD (charge coupled device) cameras 114, 115,and a plurality of LED (light emitting diodes) sources 116-118 that areused to detect and verify the presence of fire within the cargo bay 102.Similarly, the cargo bay 103 includes an IR camera 122, two CCD cameras124, 125, and a plurality of LED sources 126-128. The cargo bay 104includes an IR camera 132, two CCD cameras 134, 135, and two LED sources136, 138. In an embodiment disclosed herein, the components 112, 114,115-118, 122, 124, 125-128, 132, 134, 135, 136, 138 provide redundantcoverage so that failure of one component does not result in failure ofthe entire system. Accordingly, in some embodiments, fire detection maybe adequately performed even after failure of one of the IR cameras 112,122, 132. Note also that the system could use chemical sensors (notshown) to detect, for example, an increase in CO₂ in one of the cargobays 102-104. The additional information could be used by follow onprocessing to help determine the presence of a fire condition.

The IR cameras 112, 122, 132 measure IR energy (i.e., heat) provided ineach of the respective ones of the cargo bays 102-104. The CCD cameras114, 115, 124, 125, 134, 135 measure and provide signals of visiblelight in each of the cargo bays 102-104. In some instances, there may beno ambient light in the cargo bays 102-104. The LEDs 116-118, 126-128,136, 138 provide light in each of the cargo bays 102-104. The LEDs116-118, 126-128, 136, 138 may be actuated by an external source or maysimply provide illumination in a way that may be synchronized with theCCD cameras 114, 115, 124, 125, 134, 135.

Note that, as used herein, the term “video” includes the output of theIR cameras, whether visible or not and whether the output is provided inany conventional format or not. Similarly, the term “video” alsoincludes output of the CCD/CMOS cameras, whether visible or not andwhether the output is provided in any conventional format or not.

The cameras 112, 114, 115, 124, 125, 132 134, 135 and the LEDs 116-118,126-128, 136, 138 may be mounted in any location within the cargo bays102-104. However, for an embodiment disclosed herein, the cameras 112,114, 115, 124, 125, 132 134, 135 are mounted in an upper corner of eachof the cargo bays 102-104. In addition, the LEDs may be mounted anywherewithin the cargo bays 102-104. However, for an embodiment disclosedherein, each of the cameras has an LED unit mounted therewith. However,as shown in the diagram 100, there may also be LED's 117, 127 that arenot directly mounted in relatively close proximity with any of thecameras 112, 114, 115, 124, 125, 132 134, 135. Note also that, for anembodiment disclosed herein, each of the IR cameras 112, 122, 132 ismounted proximate to a corresponding on of the CCD cameras 114, 124,134. However, for other embodiments, it may be possible to have one ormore IR cameras not mounted in relatively close proximity to acorresponding CCD camera. Note also that it is possible to provide anynumber of cameras to each of the cargo bays 102-104. Providingadditional cameras for each of the cargo bays 102-104 would tend toimprove the accuracy of the result but would also tend to increase theamount of processing needed. The cameras and LED's that are mountedproximate to one another may be provided in a protective enclosure (notshown).

Each of the CCD cameras 114, 115, 124, 125, 134, 135 may be anyconventional CCD camera having at least 320 by 240 pixel resolution. Awide-angle lense (e.g., 90 degrees) may provided with one or more of theCCD cameras 114, 115, 124, 125, 134, 135. In some embodiments, the CCDcameras 114, 115, 124, 125, 134, 135 may have at least a 640 by 480pixel resolution. Different ones of the cameras 114, 115, 124, 125, 134,135 may have different resolution than other ones of the cameras 114,115, 124, 125, 134, 135. The CCD cameras 114, 115, 124, 125, 134, 135may be sensitive to light wave lengths between 400 and 1000 nanometersat better than 1 lux. Such a camera may be provided by, for example,using a Pulnix model TM-7EG CCD camera with filters. Note also that theCCD cameras 114, 115, 124, 125, 134, 135 may have on-board DSPprocessing (and corresponding hardware) and/or may be used with otherDSP processing provided therewith.

The IR cameras 112, 122, 132 may have a resolution of at least 320 by240 pixels and be sensitive to wave lengths between 8 and 13 microns. Anappropriate IR camera may be provided, for example, by the Raytheon OEMSeries 300 model. Different ones of the cameras 112, 122, 132 may havedifferent resolution than other ones of the cameras 112, 122, 132. Notealso that the IR cameras 112, 122, 132 may have on-board DSP processing(and corresponding hardware) and/or may be used with other DSPprocessing provided therewith. In addition, in some embodiments, no IRcameras may be used, in which case the processing described herein willbe performed for CCD cameras.

The LEDs may be any conventional homogenious LED providing anappropriate amount and wave length of light for the CCDs to operate. Forexample, the LEDs may provide light at 800 nanometers.

Note that, as will become apparent from the discussion herein, theperformance and resolution of the cameras and the LEDs may be a functionof the processing power used to process the information from thecameras. Thus, for example, the cameras may be provided with additionalresolution provided that the follow on processing system that processesthe data from the cameras can handle the improved resolution. In someembodiments, the CCD cameras 114, 115, 124, 125, 134, 135 provide 30frames per second, although other frame rates may be possible providedthat the other rates are consistent with the processing for detectingfires. The follow on processing may process, for example, one out of tenvideo frames although, for some embodiments, this may be accomplished byhaving the follow on processing process five successive frames out ofevery fifty. Other rates and techniques for processing a subset of theframes may also be used. The CCD cameras 114, 115, 124, 125, 134, 135may also provide a black and white (i.e., gray scale) output rather thana color output. In instances where the CCD cameras provides a coloroutput, the color information may be converted to a gray scale and/ormay be used to provide additional detection using the additionalinformation provided by the color.

Note that the CCD cameras may also be replaced by another type of camera(such as CMOS cameras) that handle light in and around the visiblespectrum. Thus, for the discussion herein, references to the CCD cameraswill be understood to include other types of cameras capable ofdetecting light as described herein. In an embodiment herein, the CCDcamera has a size of no greater than 4.7″ by 0.8″ by 0.8″, a weight ofno greater than 0.075 lbs. A power consumption of no greater than 2.5watts, an operating temperature between −10 to 60 degrees centigrade, astorage temperature of between −40 to 80 degrees centigrade, aresolution of 640×480 pixels, and an optical wavelength response ofbetween 400 and 1000 nanometers. The CCD camera may detect temperaturesabove 700K due, at least in part, to the wavelength response thereof. Insome embodiments, the CCD camera may work with an automatic gain controlto adjust for the amount of light provided in the cargo bay. Note that,in some embodiments, the CCD cameras may only have a response in therange of 400 to 700 nm, in which case additional cameras having aresponse in the range of 700-1000 nm may or may not also be used. TheCCD cameras may use special lenses having, for example, a seventy fivedegree or ninety degree field of view. Other wide angle lenses, such astwo-hundred and seventy degrees or even three-hundred and sixty degreesmay be used.

The IR cameras may be uncooled (also known as a Focal Plane Array (FPA))and may have a size of no greater than 6.5″ by 2.2″ by 2.2″, a weight ofno greater than 0.5 lbs., a power consumption of less than 1.2 watts, anoperating temperature of between −10 and 60 degrees centigrade, astorage temperature of between −40 and 80 degrees centigrade, and anoptical wavelength response of between 7 and 14 micrometers. The IRcameras may use special lenses having, for example, a seventy fivedegree or ninety degree field of view. Other wide angle lenses, such astwo-hundred and seventy degrees or even three-hundred and sixty degreesmay be used. The lens may be made out of Germanium, but Zinc Selenidemay also be used. The FPA may be made out of amorphous silicon and havea 160×120 resolution. The IR cameras may detect temperatures of 230K andabove and thus may not require additional illumination.

Similarly, in an embodiment disclosed herein, the LEDs have a size of nogreater than 2″×2″×2″, a weight of no more than 0.125 lbs., a powerconsumption of no more than 1.5 watts, an operating temperature ofbetween −40 to 70 degrees centigrade, and a storage temperature ofbetween −55 and 120 degrees centigrade, and an optical wave length ofaround 820 nanometers.

The signals from the camera may be provided to a cargo video controlunit (CVCU) 152. The CVCU 152 accepts signals from the cameras 112, 114,115, 122, 124, 125, 132, 134, 135 and provides lighting control signalsto the LED's 116-118, 126-128, 136, 138. In some embodiments, the CVCU152 may receive digital data from the CCD cameras 114, 115, 124, 125,134, 135. Alternatively, the CVCU 152 may use a frame grabber to convertan analog video signal from one or more of the cameras 114, 115, 124,125, 134, 135 to one or more appropriate digital signals.

The CVCU 152 contains conventional on board processing to receive andsend signals, as described herein, and to provide appropriate processingof the signals input thereto to determine if a fire can be verified. TheCVCU 152 may contain a DSP chip or other DSP hardware to facilitateprocessing.

In an embodiment disclosed herein, the CVCU 152 is redundant andincludes a first processing board 154 and a second processing board 156having identical functionality to the first processing board 154. Thedesign of the CVCU is redundant so that if one of the boards 154, 156fails, the other one of the boards 154, 156 may perform the functions ofthe failed board. When the boards 154, 156 have not failed, one of theboards 154, 156 may be used to provide the processing described herein.Alternatively, in an embodiment disclosed herein, one of the boards 154,156 may be used to process approximately half of the input signals whilethe other one of the boards 154, 156 may be used to process theremaining signals. The independent results provided by each of theboards may then be used for follow on processing, as described below.

Each of the boards 154, 156 contains appropriate hardware for receivinginput signals, such as signals from the cameras 112, 114, 115, 122, 124,125, 132, 134, 135. Each of the boards 154, 156 may also includeappropriate hardware for actuating the LEDs and include appropriateprocessing for performing the detection/verification discussed herein.Each of the boards 154, 156 may also contain hardware for providingappropriate video output to be viewed by the user of the system, asdescribed below. In an embodiment disclosed herein, each of the boards154, 156 may operate in parallel to provide separate results that may beused by follow on processing.

The system includes a system video display 162 and an alternate videodisplay 164. The system video display 162 may be a video screen providedin a cockpit for the for other purposes. The alternative video display164 may be another alternative display provided for use in the cockpitfor other purposes or may be provided for the sole purpose of use withthe system described herein.

A video selector unit 166 provides a signal to the boards 154, 156 toselect a particular video signal to be viewed on the system videodisplay 162 and/or the alternative video display 164. The video selectorunit 166 operates in a conventional fashion to provide a conventionalsignal to the boards 154, 156 indicating a position of a manuallymoveable actuator of the video selector unit 166. In response, theboards 154, 156 provide the selected video output signal to the videoselector unit 166 which is then displayed on one or both of the systemvideo display 162 and the alternate video display 164. The system mayoverlay a text message on one or both of the video displays 162, 164 toindicate the results of the other processing described herein. Theoutput from an IR camera may be converted to a visual form so that, forexample, different colors represent different temperatures. Aconventional taxi aid camera system 168 may also provide a video inputto the video selector unit 166 so that the video selector unit 166 mayalso select for display the video output from the taxi aid camera system168. A recorder 172 may record the video output that is provided by theboards 154, 156.

The video signal provided to the video displays 162, 164 may be eitherthe video signal provided directly by the cameras or may be an enhancedvideo signal, which represents the video signal from the cameras thathas been processed to remove unwanted artifacts, such as the effects ofvibration and distortion caused by lenses. Providing the enhanced videosignal is described in more detail below.

In addition, in some cases, such as of a cargo compartments being fullyfilled with containers, the video signal from the cameras or even theenhanced video signal may not provide sufficient information about thestate of the compartment (e.g., whether the compartment contains smoke,fog, dust, etc. and/or whether the compartment is in a fire or non-firestate). In those cases, the multiple two-dimensional camera views may beused to synthesize a three-dimensional view. The walls of thecompartment and/or the contents may be represented in a wire frame form.Algorithms for doing this are known in the art. Then, the locations ofsuspected fire regions may be displayed within those frames. In someembodiments, one or more edge detection routines such as those disclosedherein may be used to outline a suspicious feature and a graphicaloutline of the feature may be superimposed on the video signal (raw,enhanced, and/or synthetic) to provide more information. An option ofoverriding the synthetic view option and returning to regular orenhanced video mode could be provided to allow verification of thesource of the displayed diagnosis.

A conventional smoke detection control unit 174 and a centralmaintenance system 176 may also interface with the CVCU 152. The smokedetection control unit 174 indicates whether a fire has been detected bythe conventional cargo bay fire detection system. In an embodimentdisclosed herein, the signal from the smoke detection control unit 174performs a gating function so that a user only receives an indicator offire after the smoke detection and control unit 174 has provided asignal indicating the presence of fire. In other embodiments, the signalfrom the smoke detection control unit 174 is one of the inputs to followon processing so that it is possible for the user to receive anindication that a fire is present even though the smoke detectioncontrol unit 174 has not detected a fire.

The central maintenance system 176 provides signals such as weight onwheels and ambient temperature which are used by the system in a mannerdiscussed in more detail elsewhere herein. Other signals that may beprovided by the smoke detection control unit 174 and/or the centralmaintenance system 176 include an indicator of whether fire suppressionsteps have already been taken. Note that some fire suppression steps(such as the spraying of Halon) may effect the firedetection/verification system and may be handled by, for example,filtering out any image distortion caused by the fire suppression steps.

The CVCU 152 contains processors that can run software that processesimage data from the cameras to verify if a detected fire is a falsealarm or not. That is, the software of the CVCU 152 receives as inputvideo image data from the cameras and other external information,described below, and provides, as an output, video data to be displayedon one or both of the system video display 162 and alternate videodisplay 164, and in addition, provides an indicator of whether adetected fire is a false alarm. For an embodiment disclosed herein, thecomponents may communicate by any appropriate means, such as, forexample, using an ARINC 429 transmit bus.

Referring to FIG. 2, a data flow diagram 190 illustrates operation ofthe software that runs on each of the boards 154, 156 of the CVCU 152 ofFIG. 1 to detect/verify fire in each of the cargo bays 102-104. In anembodiment disclosed herein, fire verification and detection isperformed independently for each of the cargo bays 102-104. However, forother embodiments, the system described herein may be adapted to providefor performing fire verification and detection by processing and combinginformation from more than one of the cargo bays 102-104.

The diagram 190 shows a plurality of data paths 192-194, where each ofthe paths 192-194 represents processing performed on image data from oneof the cameras. That is, for example, the path 192 represents itprocessing performed on a first camera, the path 193 representsprocessing performed on a second camera, the path 194 representsprocessing performed on a third camera, etc. There may be as many datapaths as there are cameras.

Turning to the data path 192, image data from the cameras is provided toan image compensation routine 202. The processing performed at the imagecompensation routine 202 includes, for example, adjusting the image forvibrations (using, for example, a conventional Wiener filter),compensation to account for any special lenses used on the cameras,compensation (image transformation) used in connection with thecalibration (or miscalibration) of a camera, compensation for dynamicrange unbalance, and temperature compensation for the IR cameras. Notethat some calibration may be appropriate to compensate for aging of thecameras. Also, some of the compensation parameters may be preset (e.g.,at the factory) and provided by, for example, the camera manufacturer,to any compensation processing.

The image compensation routine 202 receives as input external valuesthat are used in connection with the image compensation. The externalvalues may include, for example, results provided by the smoke detectioncontrol unit 174 of FIG. 1, the ambient temperature which may used tohandle compensation for the IR cameras, a weight-on-wheels signal(indicating that the aircraft is on the ground), an aircraft altitudesignal, and a cargo bay door open status signal. Specific imagecompensation algorithms that may be used are discussed in more detailbelow. Note that the image data that is input to the image compensationroutine 202 is also provided to the video displays 162, 164 of FIG. 1(i.e., is also provided as a video output). In some embodiments, theuser of the system may prefer to view the raw, uncompensated, imageprovided by the cameras.

The output of the image compensation routine 202 is enhanced image data204. Note that the enhanced image data 204 is also provided to the videodisplays 162, 164. Thus, in some embodiments, a user can view both theraw video image data and the enhanced video image data. The benefit ofhaving the option to view both is that, while the enhanced image datahas many artifacts removed from it and thus may be an opportunity to seethe image clearer, the user may question whether the image compensationroutine 202 has added undesirable characteristics that make it difficultto evaluate. Accordingly, in an embodiment disclosed herein, the userwould have the option of displaying the raw image or the enhanced image.

In an embodiment of the system herein, no follow on processing isperformed beyond the processing performed at the image compensationroutine 202. Thus, a user would be able to use the system to switchbetween raw and enhanced camera images using the video selector unit166. When the smoke detection control unit 174 indicates the presence ofa fire, the user switches between raw and enhanced images to view thesource of the alarm. For other embodiments of the system, follow onprocessing is performed to detect/verify the presence of fire, asdescribed below.

The enhanced image data 204 is provided to a feature extraction routine206. The feature extraction routine process the enhanced image data 204to provide feature data 208. Feature data is a description of theenhanced image reduced to various values and numbers that are used byfollow on processing to determine if fire is present or not. Thus, thespecific features that are provided in the feature data 208 depend uponwhat algorithms are being used to detect fire. For example, if the totalpixel energy of video frames is one of the parameters used in analgorithm to detect fire, then one of the features provided with thefeature data 208 and calculated by the feature extraction routing 206would be the total pixel energy of a video frame.

The feature data 208 is provided as an input to a local fusion routine212. The local fusion routine 212 may also be provided with externalinputs similar to the external inputs provided to the image compensationroutine 202. The local fusion routine 212 may process the feature data208 to determine whether a fire is present and/or to determine thelikelihood of a fire being present. The processing performed by thelocal fusion routine 212 is discussed in more detail below. The outputof the local fusion routine 212 is result data 214 which indicates theresult of the local fusion processing at the local fusion routine 212.

Similar processing for other cameras may be performed for the data path193 and the data path 194 (and other data paths not shown).Corresponding routines and data of the data path 193 are marked with asingle ′. Corresponding routines and data of the data path 194 aremarked with a double ″.

The results for the fusion calculations for each of the cameras areprovided in the result data 214, 214′, 214″. The result data 212, 214′,214″ from the different data paths 192-194 is provided to a multi-camerafusion routine 232. The multi-camera fusion routine 232 combines resultsfor the different cameras to determine an overall result indicatingwhether a fire is present or not and/or the likelihood of a fire beingpresent. The multi-camera fusion routine 232 may also receive a signalfrom the smoke detection control unit 174 of FIG. 1 and/or may receiveresults from other fire detection algorithms not specifically disclosedherein. The multi-camera fusion routine also receives other externalinputs like those received by the image compensation routines 202, 202′,202″ and the local fusion routines 212, 212′, 212″. For example, themulti-camera fusion routine 232 may receive an pitch and roll indicatorallowing for a sensitivity adjustment because of the fact that cargomoving in the cargo bays 102-104 may result in a false alarm due to theresulting change caused to the images received by the cameras.

Note that in some embodiments, there may be less processing performed atthe local fusion routines 212, 212′, 212″ and more processing performedat the multi-camera fusion routine 232. That is, the processing of thefeatures 208, 208′, 208″ may be shifted and allocated between and amongthe local fusion routines 212, 212′, 212″ and the multi-camera fusionroutine 232. In some embodiments, the multi-camera fusion routine 232 issimply a score of the various weighted results of the individual camerafusion routines. In another embodiment, the multi-camera fusion routine232 could provide an OR of individual boolean results.

The image compensation performed at the steps 202, 202′, 202″ mayinclude compensation for camera artifacts, compensation for dynamicrange unbalance, compensation for aircraft vibration, compensation foraircraft temperature variations, and compensation for fog and smokeeffects. State-of-the-art digital cameras may provide for some level ofpreliminary filtering directly within camera hardware. The resultingimage may be acquired by the CVCU 152 through standard means. Imagepreprocessing may be applied to provide images with acceptable clarityas well as to prepare the image for further processing. Preprocessingsteps include image restoration and image enhancement.

Camera artifacts are one of the sources of inaccuracy in vision-baseddetection systems for which compensation may be provided at the routines202, 202′, 202″. As a camera ages, pixels within the focal plane turn“dead” and will appear in the image as permanently bright or dark spots.Similarly, whole lines may drop out as dark or bright, and the cameramay produce some vertical streaking. Most of these artifacts may beautomatically factored out without expensive preprocessing byconsidering the presence of change between video frames. Straight andeffective techniques that include image subtraction and image averagingmay be used in the system described herein. Smoothing filters (e.g.low-pass filters and median filters) as well as sharpening filters (e.g.high-pass filters) that are simple and effective in dealing withbackground noise and illumination irregularities may be used. Becauseindicators of a fire may be in a statistical difference of subsequentframes-differences caused by real phenomena other than noise, stochastictechniques may be used with the system described herein. Among suchmethods, histogram processing may be used given its simplicity andeffectiveness in capturing statistical trends. The histogramrepresentation provides information about the image gray leveldistribution. The shape of a histogram, in particular, may provideuseful information to exclude the effect of irregular pixels caused bycamera artifacts. A priori knowledge of the statistics of pixeldistribution in the difference-images facilitates compensation for theartifacts. This a priori knowledge may be gained, for example, byestimating the camera parameters through some calibrations and/or byobtaining information from the camera manufacturer.

In addition to the dead spots and lines caused by the cameraimperfections, it is possible for a camera to display non-uniformbrightness across a field of view where the center is brighter than thecorners. Image enhancement performed at the routines 202, 202′, 202″ mayinclude a technique that handles such artifact is to enhance the imagein the space domain by applying a contrast stretching technique thatincreases the dynamic range of the image. A simple comparison of thedynamic range with a predetermined reference image may provideappropriate enhancement and bring the dynamic range within an optimaldistribution for both IR and visible images. Bright sources such as fireand heated objects in thermal IR imagery and light sources in visibleimagery can quickly saturate the dynamic range of the frames. A lineartransformation of the dynamic range of the cameras may first be providedto balance the image grayscale distribution. For a particular cameratype, tests may be conducted to calibrate the dynamic range of thecameras and to cause the image to be in the capability of the displayscreen.

Hotspots detected by IR cameras may be enhanced at the routines 202,202′, 202″ by using a gray level slicing technique to highlight aspecific range of gray levels where hotspot-related features may be moreostensible. Spatial filters that approximate a given frequency-basedfilter may be generated from frequency domain specifications to takeadvantage of both space and frequency domains. This technique may betested in terms of enhancement performance and execution speed.

In addition, in some cases the compensation routines 202, 202′, 202″ maybe used to filter out know hot areas of the cargo bays 102-104 from theIR data. For example, the cargo bays 102-104 could be relatively warmdue to the aircraft having been on the ground in a warm area. Also,mechanical coolers provided in the cargo bays 102-104 could generatelocal hot spots that are filtered out at the image compensation routines202, 202′, 202″. Other non-fire sources heat may also need to befiltered out.

With respect to vibration, the image compensation performed at theroutines 202, 202′, 202″ may include a simple frame-difference thatminimizes the vibration effect to a very low level. Then, a Wienerfilter may be applied to substantially improve the image quality. Theefficiency of the Wiener filtering approach stems from a realisticassumption about the image noise caused by unstable cameras. It may beassumed that image blurring due to camera motion is convolutive (and notadditive or multiplicative) in nature. In the case of a uniform linearmotion of the sensing camera, an analytical expression of the optimal(in the sense of mean square minimization) restored image may beprovided by the Wiener filtering technique. In some instances, anassumption of uniform linear motion may not be fully met. In thosecases, it is acceptable to adjust the so-called Wiener parameter untilan acceptable quality of restoration is obtained.

In some cases, it may be anticipated that after applying the Wienerfilter, there may still be traces of a periodic type on the resultingframe. This effect may be suppressed in the frequency domain viahomomorphic filters. Such filters may be designed to perform asimultaneous brightness range compression and contrast enhancement.Homomorphic filters are based on the assumption that a pixel value is aproduct of the illumination component and the reflection component atthe location of such a pixel. The filter starts by applying alogarithmic transformation to the image of interest to split theillumination and the reflection components from each other. Then, theresulting image is processed in the frequency domain where bothfunctions of brightness range compression and contrast enhancement areperformed simultaneously. A more simple, yet effective technique ofmatrix multiplication may be used to suppress the camera vibrationeffect. The Matrix elements may be determined and verified in relationwith the vibration patterns (e.g. frequency, magnitude, orientation . .. etc) observed in an aircraft environment.

Temperature variability due to aircraft location and altitude may beaccounted for by the fire detection system in connection with use withthe IR cameras. Hot airfields in hot climates cause cargo baytemperatures to be quite different from high altitudes in cold climates.A statistical change detection approach provided at the routines 202,202′, 202″ solves this problem by taking its thermal baseline asdictated by ambient conditions. Various thermal baselines may bedetermined for each flight profile including, loading, landing/takingoff, and cruising. The thermal baselines may be defined in a such a waythat changes in ambient thermal conditions do not cause false alarms bythe system. Aircraft profiles may be analyzed to determine the correctbaseline-setting strategy.

During fog or smoke, everything may look gray. Although all theinformation about a scene may be in the “gray” image, the human eye maynot be able to distinguish the gray scale differences on variousobjects. The routines 202, 202′, 202″ may handle this by expanding thedynamic range of the image to match the human eye. The lowest luminancelevels in the image could be made more ‘dark’ whereas the highest levelscould be made more ‘bright’. The matching of the dynamic range can bedone through hardware by tuning the gain and offset (contrast andbrightness) of the camera or through software by using a nonlineartransformation of the dynamic range. One method of foggy imageenhancement is a conventional technique called “histogram stretching”.

Referring to FIG. 3, a flow chart 250 illustrates a portion of theprocessing that may occur at the feature extraction routines 206, 206′,206″. The energy of the frames of the video image (i.e., brightness ofthe pixels) may be useful for follow on processing that detects/verifiesthe presence of fire in one or more of the cargo bays 102-104. Theenergy for frames of the video may be determined by comparing the energyof each frame to a reference frame (a video frame that represents a nofire condition) or by comparing the energy of each frame to the energyof an immediately preceding frame (first order effect) or by comparingthe energy of each frame to the energy provided two frames prior (secondorder effect). These techniques will be described with reference to FIG.3.

Processing begins at step 252 where a first reference frame, P₀, isreceived. The first reference frame may be stored in the memory of thesystem or may be the first video frame provided when the system isinitialized. Note that determination of the first reference frame whenthe system is initialized may depend upon receipt of a signal indicatingthat the cargo bay door is closed. Otherwise, the first reference framemay contain undesirable energy from ambient light that occurs when thecargo bay door is open.

Following the step 252 is a step 254 where a variable k is set to zero.The variable k is used to index each of the frames. Following the step254 is a step 256 where the variable k is incremented. Following thestep 256 is a step 258 where the frame P_(k) is received. The frameP_(k) represents the kth video frame. Following the step 258 is a step262 where index variables i and j are set to zero. Following the step262 is a step 264 where a quantity E_(k) is set to zero. The quantityE_(k) represents the energy associated with the kth video frame.

Following the step 264 is a step 266 where the quantity E_(k) is setequal to the previous value of E_(k) plus the square of the differencebetween the energy at pixel i, j of the current frame, P_(k)(i,j), andthe energy at pixel i, j of the reference frame, P_(r)(i,j), which iseither P₀(i,j) (the reference frame), P_(k−1)(i, j) to measure a firstorder effect of rate of change, or P_(k−2)(i, j) to measure a secondorder effect of rate of change. Note that for calculating the secondorder effect, it may be necessary to obtain two reference frames, P₀ andP₁, at the step 252, in which case k may be initialized to one at thestep 254.

Following the step 266 is a step 268 where the index variable i isincremented. Following the step 268 is a test step 272 where it isdetermined if the index variable i is greater than N. N represents amaximum value for i which corresponds to the number of pixels in thedirection indexed by the variable i. If it is determined at the teststep 272 that i is not greater than N, then control transfers back tothe step 266, discussed above, to continue computation of E_(k).Otherwise, if it is determined at the test step 272 that i is greaterthan N, then control transfers from the step 272 to a step 274 where iis set equal to zero, thus resetting i to facilitate processing the nextgroup of pixels. Following step 274 is a step 276 where the indexvariable j is incremented. Following the step 276 is a test step 278where it is determined if j is greater than M, where M represents thenumber of pixels in the jth direction. If not, then control transfersfrom the step 278 back to the step 266, discussed above, to continuecalculation of E_(k).

If it is determined at the test step 278 that j is greater than M, thenall of the pixels of the frame have been processed and control transfersfrom the step 278 to a step 282 where the value of E_(k) is furthercalculated by taking the square root of the current value of E_(k)divided by the product of N times M. Following the step 282 is a step284 where the value of E_(k) as provided to follow on processing (i.e.,local data fusion and multi camera data fusion) to perform appropriatedetection and verification. The follow on processing is described inmore detail below. Following the step 284, control transfers back to thestep 256 to process the next frame.

The flow chart 250 of FIG. 3 and the description above representscalculating the energy difference between each video frame and areference frame. The reference frame could either be a background frameof a no fire condition (P₀) or could be the previous video frame(P_(k−1)) (first order effect) or could be the frame before the previousframe (P_(k−2)) (second order effect). The use of all these types ofvalues is described elsewhere herein. However, note that it may bepossible to calculate multiple values for each E_(k) by using thedifferent alternatives for the reference frame P_(r), discussed above.

In some instances, it may be desirable to not use all of the pixelsproduced by the cameras to perform the energy calculations illustratedin FIG. 3. For example, it may be desirable to conserve processing powerby using half as many pixels (by, for example, selecting every otherpixel for processing). It is also possible to first re-size ordown-sample each frame produced by the cameras (using any one of avariety of possible compression techniques) prior to performing thecalculations illustrated in FIG. 3. Alternatively still, it is possibleto select only a portion of each frame for processing, either before orafter any compression. The selection of a portion of each frame may beperformed by any one of a variety of techniques such as, for example,selecting a portion of each frame containing the greatest pixelvariability or selecting a portion of each frame containing the greatestpixel energy. The selection may also be performed by using any one of avariety of techniques to determine a portion of the frame surrounded bythe highest pixel gradient. One of a variety of edge detectiontechniques and/or multiscale modeling, discussed below, may be used toselect portions of the video frames for processing.

It is possible to use the calculated frame energy values to predict thepresence of fire. In some instances, fire will cause the frame energy toincrease relative to a background image. Thus, detection of a frameenergy increase could be used to detect and/or verify the presence offire. In other instances, it may be possible to use the calculated frameenergy values, and the distribution thereof, to differentiate betweensmoke (i.e., a fire condition) and false conditions that would cause thesmoke detection control unit 174 to incorrectly indicate the presence offire, such as when fog is present in one of the cargo bays 102-104.

Referring to FIG. 4, a graph 300 illustrates the value of an energyindicator (i.e., E_(k)) relative to time when a fire occurs. In the caseof the graph 300, the energy indicator is calculated by comparing thepixel brightness at each frame with the brightness of a correspondingpixel of a background image. As can be seen from the graph 300, theenergy generally increases with time in the case of a fire beingpresent. The energy values calculated at the feature extraction routines206, 206′, 206″ may be provided to the corresponding local fusionroutine 212, 212′, 212″ and/or the multi-camera fusion routine 232 todetect a relative increase in the energy indicator using, for example, aneural network. Using a neural network or other techniques to processthe energy indicators to detect characteristics indicative of fire isdescribed in more detail below.

Referring to FIG. 5, a graph 310 illustrates energy rate of change ofthe energy indicator (first order effect, described above) with respectto time when a fire is present. Although it may not be visually apparentfrom the graph 310 that the energy rate of change correlates with thepresence of fire, it may be possible in some instances to use this datato train a neural network (or other follow on processing, describedbelow) to obtain useful information/correlation between the presence offire and the first order effect energy rate of change.

Referring to FIG. 6, a graph 320 indicates the energy indicator for anIR camera with respect to time in connection with the presence of fire.The graph 320 indicates a relatively significant increase in the energyindicator when fire is present. Accordingly, the graph 320 appears toshow a relatively good correlation between the presence of fire and theincrease in the IR energy indicator.

Referring to FIG. 7, a graph 330 illustrates an energy rate of change(first order effect) of the energy indicator of an IR camera over timein the presence of fire. In the case of the graph 330, it may not bevisually apparent that there is a strong correlation between the firstorder effect energy rate of change in the energy indicator of an IRcamera and the presence of fire. However, it may be possible in someinstances to use this data to train a neural network (or other follow onprocessing, described below) to obtain useful information/correlationbetween the presence of fire and the first order effect energy rate ofchange of the energy indicator from an IR camera.

In some instances, a system may have difficulty distinguishing betweensmoke and the presence of something that looks like smoke, such as fog,which may cause the smoke detection control unit 174 to issue a falsealarm. Accordingly, it may be useful to be able to distinguish betweensmoke and (for example) fog in order to reduce the likelihood of falsealarms. The following graphs illustrate measured differences between theenergy indicators associated with fog and the energy indicatorsassociated with smoke which was generated by burning a box in a testcargo bay.

Referring to FIG. 8, a graph 340 illustrates a plot of an energyindicator as a function of time for the box burn. The energy indicatorwas calculated using a background reference frame (P₀, described above).Note that the value of the energy indicator generally increases untilaround seven seconds and then begins to generally decrease, perhaps dueto the increase in smoke blocking light to the camera when the decreasebegins.

Referring to FIG. 9, a graph 350 shows the plot of an energy indicatorwith respect to time for fog. Note the differences between the graph 350and the graph 340 of FIG. 8. This indicates that the energy indicatorcomparing the frame energy with the background frame energy as afunction of time is potentially a good predictor and a gooddiscriminator between smoke and fog. As described in more detail below,this may be used by follow on processing (such as a neural net) todifferentiate between smoke (a true fire condition) and fog (a falsealarm).

Referring to FIG. 10, a graph 360 illustrates an energy rate of change(first order effect) for an energy indicator as a function of time for aburn box (smoke). The energy rate of change is determined by comparingthe frame energy between successive frames.

Referring to FIG. 11, a graph 370 illustrates an energy rate of change(first order effect) for an energy indicator as a function of time forfog. Note the differences between the graph 370 and the graph 360. Thisindicates that the energy rate of change (first order effect) of theenergy indicator is potentially a good predictor and discriminatorbetween fog and smoke. This information may be used by follow onprocessing, described below, to differentiate between smoke and fog.

Referring to FIG. 12, a graph 380 illustrates a second order energy rateof change for an energy indicator as a function of time for a burn box(smoke). The second order energy rate of change is determined bycomparing the energy of a frame with the energy of a frame that precedesa previous frame.

Referring to FIG. 13, a graph 390 illustrates a second order energy rateof change for an energy indicator as a function of time for fog. Notethe differences between the graph 390 and the graph 380. This indicatesthat the second order energy rate of change of the energy indicator ispotentially a good predictor and discriminator between fog and smoke.This information may be used by follow on processing, described below,to differentiate between smoke and fog.

Other features that may be useful to extract at the feature extractionroutines 206, 206′, 206″ include space variance of pixel intensity. Forexample, the presence of a “bright spot” within one of the cargo bays102-104 may indicate the presence of fire. The space variance of pixelintensity features may be calculated using any one of a variety ofconventional techniques, such as measuring the deviation in brightnessbetween regions of the frames. Note also that it may be possible toperform separate feature extraction of regions of the frames so that,for example, one region has a first set of features associated therewithand another region has another set of features associated therewith.Having separate sets of features for different regions could allow formore sophisticated processing by the multi-camera fusion routine 232.

Another feature that may be useful to extract at the feature extractionroutines 206, 206′, 206″ relates to the edges found in an image. Edgeextraction routines detect edges by locating portions of the imagehaving a pixel intensity gradient greater than a predetermined value.The output of an edge detection routine, the edge locations in theimagine, may be indicated by a pixel having a first value (i.e., one orzero) where edges are detected and by a pixel having a second,different, value for areas of an image where no edges are detected.There are a variety of conventional edge detection techniques known inthe art. Examples include the Sobel technique, the Prewitt technique,the Roberts technique, and the Canny technique. There are alsoconventional methods that use Laplacian of Gaussian and zero-crossingmethods.

Many conventional edge detection techniques find edges using anapproximation of the first derivative to detect points of maximumgradient. The Canny technique finds edges by looking for local maxima ofthe gradient of the original image. The gradient may be calculated usingthe derivative of a Gaussian filter where two thresholds to detectstrong and weak edges are defined. The Canny technique identifies weakedges in the output only if the weak edges are connected to strongedges. The Laplacian of Gaussian method finds edges by looking for zerocrossings after filtering the original image with a Laplacian ofGaussian filter. The zero-cross method finds edges by looking for zerocrossing after filtering the original image by a user specified filter(e.g., a low pass filter). Various edge detection techniques aredisclosed, for example, in the publication “Digital Image Processing” byR. C. Gonzales and R. E. Woods, published by Prentice Hall(www.prenhall.com/gonzalezwoods).

Referring to FIG. 14, a diagram 400 illustrates extraction of edgefeatures used to detect fire. Two frames 402, 404 represent referenceframes corresponding to no fire being present. The frame 404 occursafter the frame 402. The result of performing edge detection on one ofthe frames 402, 404 is shown in the edge result frame 406.

In contrast, two frames 412, 414 show conditions corresponding to afire. The frame 414 occurs after the frame 412. An edge result frame 416represents the results of performing edge detection on one of the frames412, 414. The difference between the edge result frame 406 correspondingto no fire and the edge result frame 416 corresponding to a firecondition is provided in a difference frame 418. The light portions inthe frame 418 (representing differences) may be used to determine thepresence of fire. The energy of the difference frame 418 may becalculated using any conventional method, such as summing the square ofthe pixel intensity of the difference frame 418 and taking the squareroot thereof divided by the number of pixels in the difference frame418.

Referring to FIG. 15, a graph 440 illustrates a plot of average edgeintensity vs. time of the edge difference frame 418. Note that as timeprogresses (i.e., as the fire progresses), the average edge intensity ofthe difference frame 418 increases.

Referring to FIG. 16 a graph 450 illustrates average edge intensitybetween successive frames for the frame 416 of FIG. 14. As timeprogresses, the intensity of the edge frame 416 may be calculated ateach time.

Referring to FIG. 17, a graph 460 illustrates average edge intensityover time of a difference frame corresponding to the difference betweena background frame and a frame representing simulated fog being providedto a test cargo bay (not shown). Note the difference between the graph460 and the graph 440 of FIG. 15. This indicates that the averageintensity compared to the background frame is potentially a goodpredictor and discriminator between fog and smoke. This information maybe used by follow on processing, described below, to differentiatebetween fog and smoke.

Referring to FIG. 18, a graph 470 illustrates an average edge intensityover time that is determined by comparing successive frames for thesimulated fog in the test cargo bay. Note the differences between thegraph 470 and the graph 450 of FIG. 16. This indicates that the frameparameters illustrated by FIGS. 16 and 18 are potentially goodpredictors in discriminator between fog and smoke. This information maybe used by follow on processing, described below, to differentiatebetween fog and smoke.

Other types of features may be extracted at the feature extractionroutines 206, 206′, 206″. The types of features that are extracteddepend upon the follow on processing performed by the local data fusionroutines 212, 212′, 212″ and/or the multi-camera fusion routine 232. Forexample, certain types of visual problems, such as fire detection, maylend themselves to a multiscale approach where, generally, informationis obtained by determining the differences between images at differentscales, as described below.

The multiscale approach may be used to address two different classes ofproblems, both of which have potential applicability to the systemdescribed herein. The first class may include those cases where themultiscale concepts are actually part of the process being investigated,for example, such as the case where information is gathered by sensorsat different resolutions or scales. A second class of multiscaleprocesses includes cases where the multiscale approach may be used toseek computational advantages and the high parallelism of multiscaletechniques such as, for example, when multiple versions of an originalimage are generated at various resolutions in connection with pyramidaltransformations such as the Gabor and wavelet transforms, where thecoefficients associated with the scalings convey information.

As will be described herein, the multiscale technique has severalattractive features and advantages that may be included in an embodimentof the system described herein such as, for example, mathematicalefficiency, scale invariant interpretation, richness of describing avariety of different processes including images, and a strong connectionto wavelet representation. Mathematical efficiency of the multiscaleapproach is based upon the use of statistical models that may be appliedin a parallel scheme. Parallelism may provide for efficiency, forexample, by allowing the processing of signal samples, such as imagepixels, in a parallel fashion one at a time rather than being processedin a series pixel by pixel scheme.

The multiscale technique may also provide a scale invariantinterpretation for signals that evolve in scales. For example, whenrepresenting an image, large features may be represented in oneparticular scale and finer features may be represented on a smallerscale.

Wavelets, which are provided in connection with using the multiscaleapproach, may be used to generate features that are useful for detectingvisual phenomena in an image. Wavelets may be used as an efficienttechnique to represent a signal in a scale domain for certain types ofprocesses, for example, such as non-stationary processes. This is incontrast, for example, to stationary processes which may be betterrepresented in the frequency domain for example, by means of a FastFourier transform (FFT).

The multiscale approach may be used as a technique for example, inconnection with fusing data that is gathered by sensors of differentscales or resolutions. In some applications that may be used for imageprocessing, global monitoring may use remote sensing cameras in whichthere are a plurality of cameras each operating in different spectralbands. Images collected by different frequency band devices may be atseveral different scales. The multiscale technique may be used toprovide a scale invariant interpretation of information. Even if onlyone type of sensor is used, different ways of measurement may beperformed leading to resolution differences. Using information of thesedifferent scales may be performed using the multiscale technique. Thesecond class of problems which may be addressed by the multiscaleapproach as related to the system disclosed herein are discussed below.

Referring now to FIG. 19, shown is an example 1000 of different images1002, 1004, 1006, 1008 containing complementary information about agiven scene. In particular, each of the elements included in the example1000 are images of the same object taken as different perspectives, forexample, such a zoom of a particular object. However, the informationincluded in each of the images 1002, 1004, 1006, 1008 may becomplementary information about the same scene. The courser images, suchas the images 1002, 1008, may each be a 256×256 pixel image containinginformation about the object on the entire scene. A finer image may be azoom of a particular portion of the larger image such as, for example,the images 1004, 1006 may zoom in on a particular portion of a largerimage, such as the images 1002, 1008.

Since these different images in the illustration 1000 are of differentscales, information is generated in connection with obtaining thetransforms used to scale the images. Accordingly, it may be possible toextract features of an image using information from transforms appliedin connection with a multiscale technique.

Multiple versions of an image may be generated at various resolutions bymeans of pyramidal transformations, such as the Gabor transform andwavelet transforms, for example. Using such techniques, the originalprocess or image in this instance may be transformed into two sets ofcoefficients. A first set of coefficients may include low frequencycontent of the signal and may be referred to as scaling or approximationcoefficients. A second set of coefficients may be characterized ascontaining high frequency content of the signal or image and may bereferred to as wavelet or detail coefficients. Because of the pyramidalstructure of the wavelet transform, the representation of theapproximation and detail coefficients may be represented as a treestructure.

Models indexed on homogeneous trees may be applied in various fields ofsignal processing and may also be applied in connection with images. Insuch a technique, a tree may be used to represent the multiscale modelwhere each level of the tree represents a scale. As the model evolvesfrom one level to another down the tree, (from the root to a leaf), thesignal evolves from one resolution to the next. An embodiment mayutilize the tree structure to describe many classes of multiscalestochastic processes and images such as Markov random fields andfractional Brown motions.

The tree representation may be used in connection with a coarse to finerecursion in the scale domain, for example, using Haar waveletssynthesis equation.

$\begin{matrix}{{f\left( {{m + 1},n} \right)} = {{\sum\limits_{k = {- \infty}}^{k = {+ \infty}}{{h\left( {{2\; k} - n} \right)}{f\left( {m,k} \right)}}} + {\sum\limits_{k = {- \infty}}^{k = {+ \infty}}{{g\left( {{2\; k} - n} \right)}{d\left( {m,k} \right)}}}}} & {{EQUATION}\mspace{14mu} 1.1}\end{matrix}$

In the foregoing, Equation 1.1, f(m,) represents the sequence of scalingor the approximation coefficients of the original signal having a scaleof m. It should be noted that the higher the scale m is, the finer theresolution. In the foregoing equation, the term d(m,) may represent thesequence of wavelet or detail coefficients as the scale m.

An embodiment of the system described herein may simplify thedescription of wavelet coefficients (i.e., d(m,)) as being nearly white.In accordance with this assumption, models may be defined in accordancewith the homogenous tree structure on a scale-to-scale scheme asrepresented in accordance with:X(s)=A(s)X( γ s)+E(s)W(s)  EQUATION 1.2

In Equation 1.2, “s” may represent an abstract index corresponding tonodes in the tree, ( γs) denotes the parent of the node s, and γ mayrepresent an upward shift operator on a set of nodes of a tree. W(s) isa driving white noise under the assumption of white waveletcoefficients. The term A(s) x( γs) and E(s)(w) in Equation 1.2 mayrepresent, respectively, the predictable and unpredictable parts of animage as it evolves from one scale to the next.

In accordance with the foregoing tree structure, and the differentscalings represented at different levels of a tree of a particularimage, different one-dimensional and two-dimensional images or signalsmay be represented with different tree structures.

Referring now to FIG. 20, shown is an example of an embodiment of a treestructure 1020 that may be used to represent one dimensional signals orimages. The tree structure 1020 of a dyadic tree structure may be usedto represent a one-dimensional signal or image representation. In thisparticular example of a tree for one dimensional signal or images, eachparent node has two child nodes. A root node 1022 may correspond to afirst image that is decomposed into approximations at lower resolutions,for example, in accordance with different orientations. The detailedroot node 1022 may be decomposed into a plurality of images at lowerlevels for child nodes within the tree of a courser resolution. In thisexample, the root node 1022 may be a detailed image decomposed into twochild node images 1024 a, 1024 b. Similarly, each of the images 1024 a,1024 b may be decomposed into coarser images. For example, the image1024 a may be decomposed into two images 1026 a, 1026 b, as shown in thetree structure 1020.

Referring now to FIG. 21, shown is an example of another tree structure1040 that may be used to represent a two-dimensional signal or image.The tree structure 1040 in this example shows the first four levels of aquadratic tree structure for a two-dimensional image representation. Inthe representation 1040, each node may have four children or childnodes. The tree structure 1040 may also be characterized and referred toas a quadratic tree. Other types of tree representations, for example,such structures where a node has a different number of child nodes, mayvary in accordance with the dimension of the image or signal beingdecomposed as well as whether a wavelet decomposition is being used asin this instance. The tree representation of images described herein maybe used in accordance with the wavelet structure. Wavelet decompositionof an image, such as a two-dimensional image, may yield four images eachof a courser resolution than an image of its parent node.

Referring now to FIG. 22, shown is an example of a tree representation1050 of an image decomposed by wavelet transformation. In this example,an initial image 1052 may be a 256 by 256 pixel image decomposed bywavelet transformation into its approximation at lower resolution, suchas 128 by 128 pixels, and three detailed images showing details at thehorizontal, vertical and diagonal orientations. With reference to thetree structure 1050, the image 1052 may be approximated at a lowerresolution an image 1054 a. Three images 1054 b, 1054 c, 1054 d, mayrepresent detailed images, respectively, showing details of thehorizontal, vertical, and diagonal orientations.

Each node “s”, except at the top and bottom in a q-order tree, has aparent node and q offspring nodes. Different levels of the treerepresent distinct scales in this set of multiscale versions of theimage. The tree architecture or typology may be used to represent imagesexhibiting multiscale features across varying scales. In a tree model,it should be noted that nodes may be correlated vertically or acrossscales between levels rather than horizontally within the same domain orlevel. The stronger the correlation across scales, such as betweendifferent levels, the more efficient the tree model may be. Depending onthe way of interpreting nodes in the tree, scales may be organized fromfiner to coarser, or coarser to finer, as the tree is scanned from topto bottom (root to leaf).

For example, consider the case where a process or image may berepresented as a set of images representing the same scene, but atdifferent resolutions or scales. Different image versions at variousresolutions may be generated using a wavelet transform. The originalimage may be at the root of the tree which is the finest scale. Thefirst round of wavelet transformations may yield four images, oneapproximation and three detailed images for example as described inconnection with FIG. 22. The second round of wavelet transformations asapplied to each one of these images may yield a total of sixteen images.

Repeating the application of a wavelet transformation, for example Ntimes, yields a multiscale process of order N. A tree having N levelsmay represent the set of images where nodes of the tree represent theimages as described herein. Each level of the tree may represent asubset of images at a certain resolution or scale. According to thisarrangement, scales may progress from finer to coarser as the treesscanned from the top to the bottom or from the root node to its leaves.

In another example, if the approximation images are considered, eachnode of the tree may represent the pixel information and the scalearrangement may be reversed. In this particular example, scales mayprogress from coarser to finer as one scans the tree from top to bottom.In this example, the bottom of the tree may then represent pixels of thefinest image.

The following describes the tree representing an image where the bottomof the tree represents the pixels of the finest image and the coarserimage is represented as at the root or top. If an ordinary node “s” islocated at a particular scale M, then the parent node is located at thescale M−1, and the offspring nodes of the node “s” are accordinglylocated at the scale M+1 of the tree.

In the foregoing tree structures, each node “s” in the tree maycorrespond to a state vector (x) representing scale information at aparticular node “s”. The state vector (x) may be interpreted in avariety of different ways. For example, (x) may represent the gray levelof pixels in a set of intensity images or the RGB (red green blue)content of pixels in a set of colored images. The vector (x) may be acombination of wavelet and scaling coefficients after applying a wavelettransform to the original process.

As described above, the multiscale technique considers an image of themapping of node coordinates into density values represented in atree-like structure. The general technique is to have an original imageprojected at different scales or resolutions where the image dynamicsconnect pixels with various resolutions in a scale-to-scale restructureas described, for example, in connection with FIG. 21 and FIG. 22.

It should be noted that, for example, in the case of a suspected fire,information provided by the gray level of image pixels may not besufficient to identify a fire because the image quality may dependheavily on local variations of image intensity. Accordingly, to capturesuch local information, the size of the neighborhood where the contrastis computed may be adapted to the size of the objects to be analyzed. Aspecific resolution or scale may be used to characterize the size of theneighborhood in order to analyze the local information. In connectionwith a suspected fire, for example, objects may have different sizes andit may not be possible to define an optimal common resolution for alllocal information extracted from a particular image. Thus, taking a setof images at different resolutions may provide additional informationfor image analysis and use of the multiscale features may be generatedby use of the wavelet transformation as described herein. Using suchfeatures such as combinations of scaling and wavelet coefficients,linear and non-linear multiscale models may be implemented tocharacterize specific classes of images such as those corresponding, forexample, to normal, smoky, foggy or hazardous environments. Inparticular, simple and effective classes of linear auto-regressivemodels may be tested. Additionally, neural network-based multiscalemodels, described below, may be identified and implemented to ensureearly fire detection and increase the system's robustness to variabilityof relevant factors and the system environment.

Referring now to FIG. 23, shown is an example of an image represented inaccordance with the multiscale technique described herein. Therepresentation 1100 of FIG. 23 includes an original image 1102 shown ashaving a scale of zero. Applying, for example, the wavelettransformation a first-time, the original image or set of pixels 1102may be transformed to a scale of one at an image 1104. Subsequentlyapplied again, the wavelet transformation may produce yet another image1106 having a scale of two. Beginning with the original pixel image, thesame operation may be applied across the plurality of pixels of the sameimage in parallel generating a plurality of paths of the tree.

The Wavelet coefficients calculated in connection with performing themultiscale process are the features extracted at the routines 206, 206′,206″ which may be used by follow on processing, as described below.

Another technique that may be used to extract features at the routines206, 206′, 206″ is Principal Component Analysis (PCA), which considersan image as a single vector and computes eigenvalues of the correlationmatrix of the image vector. Each eigenvalue corresponds to a so-calledeigenimage. Computed eigenvalues may be used as projection weights ofthe original image into the space spanned by the eigenimages. Each classof images may be characterized by a weighting factor detailing itsprojections into a set of eigenimages. This technique may be used torepresent an image by a relatively small number of eigenvalues that arecoefficients of decomposition of an image into principal components. Forexample, eigenvalues may be determined for visual images correspondingto conditions that are normal, smoky, foggy or another type of anenvironment. The pixel image matrix may be represented with a smallnumber of uncorrelated representative integers or eigenvalues.

The PCA technique may be used to discriminate between different sensedscenes, for example such foggy, cloudy or a fire, in a particularlocation of a plane. Different images, such as the foggy image and thesmoke image, may have special principal components differing fromprincipal components of other images. Accordingly, PCA techniques may beused to represent known images, for example, those associated with asmoky condition or a foggy condition.

Applying PCA techniques, a known condition, such as a smoky or foggycondition may be represented by a set of eigenimages together with a setof eigenvalues. Fog may be classified by a set of particular eigenvaluesor weighting factors. Similarly, another condition may be characterizedby a different set of weights or eigenvalues.

As described in more detail below, the PCA technique may be used, forexample, with a neural network where a particular set of known weightsmay be associated with a particular condition such as foggy. The neuralnet may be trained to recognize and associate a particular set ofeigenvalues of weight with the existence of a particular condition suchas fog or smoke. Once the neural net is trained to differentiate betweenthese different conditions, a target image may be used and the trainedneural net may determine whether the particular target image correspondsto anyone of a particular set of conditions that the neural net has beentrained for. In other words, the trained neural net compares certaincharacteristics or features with those of conditions specified bytraining data fed to the neural net. The neural net may be used todetermine whether the target image corresponds to one of the particularconditions for which the neural net was trained. Generally, PCAtransforms a number of correlated variables into a number ofuncorrelated variables that may be referred to as Principal Components.

Generally, the first principal component may account for as much of thevariability and data as possible and each succeeding component may alsoaccount for as much of the remaining variability as possible. Theprincipal components reflect the inter-correlation between the matrixelements (e.g. image pixels). This procedure may often be referred to aseigenanalysis. In one embodiment, the eigenvector associated with thelargest eigenvalue may have the same direction as the first principalcomponent. Accordingly, the eigenvector associated with second largesteigenvalue may determine the direction of the second principal componentand so on. The sum of the eigenvalues equals the trace of the squarematrix and the maximum number of eigenvectors equals the number of rowsor columns of this matrix.

PCA may be characterized as a one unit transformation similar to factoranalysis. PCA may be represented or described as a weighted linearcombination producing a new set of components by multiplying each of thebands or components in the original image by a weight and adding theresults. The weights in the transformation may collectively be referredto as the eigenvectors. For any given number of original bands orcomponents, an equal number of transformation equations may be producedyielding an equivalent number of component images.

Note that, in other embodiments, it is possible to use both theeigenvalues and the eigenimages to detect/verify various conditions. Inthose cases, the follow on processing (e.g., neural net) would betrained/programmed with both the eigenvector data and the eigenimage ofparticular conditions. Then, for detection/verification, both theeigenvector data and the eigenimages would be used.

PCA, and other techniques described herein, such as the multiscalemodeling technique, may be used to reduce the data dimensionality and todevelop meaningful features to describe and represent images. Example ofsuch techniques may include wavelet coefficients, high order statisticalmoments, edges, skeletons, and the like.

Referring now to FIG. 24, shown is an example of an image 2000 that maybe produced using cameras that are part of the system described herein.The image 2000 may include objects 2002, 2004, 2006. Each of the objects2002, 2004, 2006 in the image 2000 may correspond, for example, to itemsincluded in one of the cargo bays 102-104. PCA may be used to extractfeature information from the image 2000, for example, resulting in afirst principal component corresponding to the object 2002, a secondprincipal component corresponding to the object 2004, a third principalcomponent corresponding to the object 2006, and a fourth principalcomponent corresponding to the object 2008. The image 2000 may representobjects in a bay under normal conditions. In contrast, if there is afire or smoke in the bay, there may be additional or different principalcomponents when the PCA technique is applied to the image.

Referring now to FIG. 25, shown is an example 2030 of imagescorresponding to normal and smoky conditions within one of the cargobays 102-104. A first image 2020 may correspond to the normal condition.When a PCA technique is applied to the image 2020 one or more principalcomponents may be produced corresponding, for example to therectangular-shaped object in the center of the image 2020 and theelongated pipe-like shape extending from the top portion of therectangular-shaped object.

A second image 2022 may correspond to a smoky condition of one of thebays 102-104. When a PCA technique is applied to the image 2022, one ormore principal components may be produced corresponding to therectangular-shaped object in the center of the image 2022 and the smokearising from the top portion of the rectangular-shaped object. Asdescribed in more detail below, these principal components may beproduced and used to “teach” for example, a neural net. The resultingtrained neural net may be used to make a decision regarding whether oneor more observed images exhibits the “normal” or “smoky” states.

In other embodiments, it may be possible to first combine signals frommore than one camera (either before or after image compensation) priorto extracting features. In that case, the local fusion routines 212,212′, 212″ may be processing features generated by more than one camera.

Once features have been extracted using the feature extraction routines206, 206 i′, 206″, the features are processed by a combination of thelocal fusion routines 212, 212′, 212″ and the multi-camera fusionroutine 232. The fusion may be performed using any one of a variety oftechniques, such as neural nets, fuzzy logic, hidden Markov models,and/or multiple model state estimation. The use of various techniques isdescribed in more detail below. Note that any of the features discussedherein, or any other type of feature, may be processed using fusiontechniques to provide a result. For example, the energy indicatorsdiscussed above in connection with FIG. 3 may be used as inputs to aneural net, fuzzy logic routine, hidden Markov model, and/or multiplemodel state estimator to detect some of the patterns/trends discussedabove in connection with FIGS. 4-18.

A neural network may be characterized as a set of units or nodes andconnections between the nodes. A node may have one or more inputs and asingle output. Nodes may be interconnected together by nets. The valuesof inputs of the node may be multiplied by an internal weight associatedwith the node. If there are multiple inputs to a node, the resultingvalue associated with each of these inputs multiplied by an internalunique weight may be combined and then processed by an internal functionassociated with the node to produce an output.

A neural network may learn by “training” using training input. Theprocess of training a neural network may involve adjusting input weightsassociated with each of the nodes in accordance with training input suchthat the operative network is consistent with the desired output. Thisinvolves the development of a training file which may include data foreach input node, and the correct or desired response for each of thenetwork's output nodes. Training of a network may be used, for example,in image recognition and other applications.

For the system disclosed herein, features used in connection with neuralnet training may include any one of a variety of features extracted atthe feature extraction routines 206, 206′, 206″. An embodiment mayinclude any one of a different variety of different types of neural nettraining techniques. An embodiment may include a supervised trainingtechnique that requires a target for learning. In such an embodiment,the neural net based system adjusts its internal parameters (weights andbiases) to minimize the error between the system estimated output andthe target. This type of training may be included in an embodiment, forexample, if there is good knowledge of the system model. An embodimentmay also use a well known locally convergent technique such as the backpropagation technique used to train a neural net by adjusting weightsand biases. Note also that it may be possible to train the system usingexperimentally obtained image data recorded for various scenarios.

Once the network has been trained, input data may be provided to thenetwork for processing to produce a response in accordance with what thenetwork “learned” during its training. Neural networks may beimplemented in hardware and/or software and be used in any one of avariety of different applications ranging from, for example, voicerecognition systems, image recognition, medical imaging, and the like.In this particular example, neural networks may be used for follow onprocessing to process any of the features extracted using any one of avariety of different techniques such as, for example, principalcomponent analysis or PCA, multiscale modeling techniques, and the like.As part of the training process, the interconnection strengths orweights between the nodes may be adapted to learn from a particular setof training patterns.

Referring now to FIG. 26, shown is a block diagram 1120 of a neuralnetwork multiscale model that may be used in connection with identifyingand implementing early fire detection. By analyzing wavelet coefficientsassociated with transforming images of different conditions such as, forexample, normal conditions, smoky, foggy or other hazardousenvironments, training images 1122 may, in conjunction with the wavelettransformation 1124, be used to produce a structure of images 1126. Thewavelet coefficients of the training images may be used to “teach” aneural net 1128 to recognize particular conditions. The result is thetrained neural net 1128 which may subsequently receive as input waveletcoefficients of a target image 1130. Accordingly, the neural net 1128may be used to identify or classify particular ones of the target image1130 as one corresponding to, for example, normal conditions, smokyconditions, foggy conditions or other type of hazardous or alarmenvironment conditions in accordance with the particular training imagesuses.

In the block diagram 1120, the wavelet transformation may be used in anembodiment as part of the feature extraction processing 206, 206′, 206″described elsewhere in connection with FIG. 2. The trained neural net1128 may be executed as part of the processing associated with somecombination of the local fusion routines 212, 212′, 212″ and themulti-camera fusion routine 232. Additionally an embodiment may also useone or more different feature extraction techniques with the neuralnetwork (or a different neural network running in parallel) such as, forexample, Principal Component Analysis (PCA), Multiscale modelling, frameenergy calculations, and the like. Generally, the system describedherein may mix and match any one or more particular feature extractiontechniques to be used in combination with any one or more differenttechniques associated with the combination of the local fusionprocessing 212, 212′, 212″ and the multi-camera fusion routine 232

Another technique that may be used by a combination of the local fusionroutines 212, 212′, 212″ and the multi-camera fusion routine 232 is theHidden Markov Model (HMM). An HMM may be used to identify patterns whichappear over a period of time. In connection with images describedherein, by observing images over time, a particular hidden state ofinterest may be determined.

Generally a Markov process may be defined as one which moves from stateto state depending only on the previous N states. In this instance, theprocess may be called an order N Markov mode where N is the number ofstates affecting the choice of the next state. The simplest Markovprocess is a first order process (N=1) where the choice of state may bemade purely on the basis of the prior state.

For a first order Markov process having M states, there are M squaredtransitions possible between states since it may be possible to movefrom any one state to another. Associated with each transition is aparticular probability of progressing for moving from one state toanother. Such a probability may be referred to as a transitionprobability. The M squared probabilities associated with each of thetransitions in a first order Markov process having M states may becollected together in the form of a matrix that may be referred to as astate transition matrix. As described herein, these probabilities do notvary with time although it is possible to contemplate embodiments wherethe probabilities may vary over time.

In initializing a system using Markov processes, an estimate orprobability at time=zero may be determined. In one embodiment, thisquantity may be defined in a vector of initial probabilities alsoreferred to as the π vector. The initial vector π of probabilities sumto one. Similarly, each of the rows or columns of the transition matrixalso sum to a probability of one. A system that may be characterized insuch a manner as to have one or more hidden states, a set of initialconditions defining initial probabilities at time=0 (π), and a statetransition matrix defining the probability of a system in a state Ngiven a previous state N−1 may be described as a Markov process. Markovprocesses permit recognition of patterns evolving over time or acrossany other variable such as scale.

In connection with an observed sequence of states or images, there maybe a probabilistic relationship to the hidden process or hidden states,for example, such as those characterized as normal or others with thepresence of smoke or fire. In the instance where an observed sequence ofimages is probabilistically related to hidden states, processes may bemodeled using an HMM where there is an underlying hidden Markov processthat changes over time as well as a set of observable states which areprobabilistically related to the hidden states of the process. Similarto representing the sum of probabilities of hidden states, theprobabilities involving all observable states sum to one. In addition tothe state transition matrix, an HMM may also have what will be referredto herein as a confusion matrix containing the probabilities of theobservable states given a particular hidden state. The hidden states maybe characterized as the real states of the system described by aparticular Markov process. The observable states may represent thosestates of the process that are observable, such as represented by imagestaken from a camera. A set of initial probabilities may also bespecified as well as a state transition matrix and a confusion matrix.The HMM may be characterized as a standard Markov process or augmentedby a set of observable states with the addition of a confusion matrix toexpress the probabilistic relation between the hidden and observablestates. The terms of the state transition matrix and the confusionmatrix may be constant in one embodiment and may not vary over timefollowing a timing variance assumption in this example. Accordingly, thefollowing triple (π, A, B) may be used to define an HMM mathematicallyin a more concise way as follows:Π=(π_(i)): Vector of initial state probabilities  (4a)A=(a _(ij))=Pr(x _(i) ^(t) /x _(j) ^(t−1)): State transitionmatrix  (4b)B=(b _(ij))=Pr(y _(i) /x _(j)): Confusion matrix  (4c)

What will now be described are three types of problems that may besolved using HMMs for processes that generate patterns evolving over aspace of time. The evaluation problem matches the most likely system toa sequence of observations. In other words, given an HMM model, what isthe probability of generating a given sequence of observations. Thistechnique, based on the notion of HMM, that is used to solve thisproblem is known as the forward algorithm.

The decoding problem determines the hidden sequence most likely to havegenerated a sequence of observations. In other words, given a sequenceof observations that are associated with a given HMM, what sequence ofhidden states most probably generated such observations. The technique,based on the notion of HMM, that is used to solve this problem is knownas the Viterbi algorithm.

The learning problem determines the model parameters most likely to havegenerated a sequence of observations. In other words, given a set ofobserved sequences, what HMM most probably underlies such set, such as,for example, what are the parameters of such an HMM. The technique,based on the notion of HMM, that is used to solve this problem is knownas the forward-backward algorithm. Each one of these three problems andtechniques are described in more detail in following paragraphs.

In connection with the evaluation problem and the forward algorithm,given a triple (π, A, B), what is the probability that an certainobservable sequence may occur?

Referring now to FIG. 27, shown is an example 1200 of a representationof hidden states over a period of time. The hidden states in thisexample may be referred to as Hid1, Hid 2, and Hid 3 at various timest0, t1. . . . in the trellis representation 1200. Each of the hiddenstates has a probabilistic relationship to one or more hidden observed.For example, there may be four observable states (A, B, C, D) in anembodiment which represent the customer satisfaction ratings made byconsumers in connection with a particular service. These observed statesmay be associated with, for example, three hidden states (Hid1, Hid2,Hid3). The probabilistic relationship when moving from one hidden stateto the next with a Markov process of order 1 may be used to define thetransition matrix which is a 3×3 matrix of probabilities in thisexample.

The initial probability vector is a 1×3 vector and the confusion matrixis a 3×3 matrix of probabilities representing the probability of anobserved state given a particular hidden state.

The forward technique uses the time invariance property of theprobabilities to reduce the complexity of the calculations such thatpartial probabilities may be used in a recursive manner. The partialprobability may be defined as the probability of reaching anintermediate state in the trellis representation 1200. The probabilityof reaching an intermediate state in the trellis is the sum of allpossible paths to that state. For example, referring to FIG. 28, theprobability of the customer being in state Hid2 at time t1 may berepresented as in the trellis representation 1220.

Let the partial probability of state j at time t_(k) and observationo_(k) be denoted as α_(t) _(k) ^(j)(o_(k)). In other words, α_(t) _(k)^(j)(o_(k)) Pr (Observation o_(k)|hidden state is j)×Pr(all paths tostate j at time t_(k)). If the partial probability is determined forreaching each of states Hid1, Hid2, and Hid3 at time t3, and these threepartial probabilities are summed together, the sum of these partialprobabilities is the sum of all possible paths through the trellis.Following is a representation of the recursive formula that may be usedto determine the partial probabilities:α_(t) _(k) ^(j)(o _(k))=Probability (observation Ok|hidden state isj)×Pr(all paths to state j at time tk).

At time 0 (i.e. t_(k)=t₀), there are no paths leading to the firstcolumn of the hidden states in the trellis representation. Hence, thepartial probability of a certain observation o given a hidden state j isdefined as the initial probability of the HMM at the hidden state jmultiplied by the probability of having the observation o at time 0;that is:α_(t) ₀ ^(j)(o)=π(j)b _(jo)

where, π(j) stands for the probability of the HMM being at the hiddenstate j at time 0 and b jo stands for the probability of observing theobservation o given the hidden state j. Assuming the partialprobabilities at any time t_(k) are available, the partial probabilitiesat time t_(k) may be used in determining the probabilities at timet_(k+1). This may be represented recursively as:

${\alpha_{t_{k + 1}}^{j}\left( o_{k + 1} \right)} = {b_{jk}{\sum\limits_{1 = 1}^{n}{a_{1j}{\alpha_{t_{k}}^{1}\left( o_{k} \right)}}}}$

Thus the partial probability may be calculated as the product of theappropriate observation probability (i.e. probability of having theobservation o_(k+1), being provoked by hidden state j, at time t_(k+1))with the sum of probabilities of reaching that state at that time.Finally the sum of all partial probabilities gives the probability ofthe observation, given the HMM. The recursive relationship given by theforegoing permits calculation of the probability of an observationsequence given an HMM at any time. This technique reduces thecomputational complexity of calculating the probability of anobservation sequence given a HMM. For instance, consider the case of asequence of T observations and a HMM (Π, A, B). The computation ofpartial probabilities grows linearly with T if this forward algorithm isused. However, this computation grows exponentially with T if one usesthe “naive” (or exhaustive) method.

Referring now to FIG. 29, shown is a representation 1240 of an exampleof the forward algorithm applied. FIG. 29 shows the calculation of thepartial probability at time t=t₁ for an “Unhappy” state with a sequenceof observations (“A”, “B”). This is the product of the appropriateobservation probability and the sum of the previous partialprobabilities multiplied by the appropriate transition probabilities. Inthis diagram 1240, the notation was changed for clarification purposes.Upper and lower scripts were used to designate hidden and observedstates.

In connection with the second problem, the Viterbi algorithm may be usedto efficiently answer the following question: “Given a particular HMMand an associated sequence of observations, what is the most likelysequence of underlying hidden states that might have generated suchobservation sequence”? One technique that may be used in determiningthis most likely sequence is to find the most probable sequence ofhidden states that generated such observation sequence. First, allpossible sequences of hidden states may be listed and the probability ofthe observed sequence for each of the combinations. Second determine thesequence of hidden states that maximizes:Pr(observed sequence|hidden state combination).

Such a sequence of hidden states is the most likely sequence thatgenerated the observation sequence at hand. A naïve approach may be usedby exhaustively calculating each combination. Alternatively, the timeinvariant property may be considered as with the forward algorithmdescribed herein.

Referring now to FIG. 30, shown is an example of a trellis staterepresentation 1280. Each hidden state in the trellis has a mostprobable path leading to it. Consider, for instance, the threeintermediate states at time t₂. The most probable partial path to eachone of these three states at time t=2 may be as in 1280. These paths maybe referred to as best partial paths. Each of these best partial pathshas an associated probability called partial probability denoted byδ_(t) _(k) ^(j)(o_(k)) where j stands for the hidden state, t_(k) forthe time of observation (i.e. k^(th) column in the trellis), and o_(k)for the observation at that time. Unlike its definition in the forwardalgorithm, the partial probability δ_(t) _(k) ^(j)(o_(k)) is definedhere as the maximum probability of all sequences ending at state j andobservation o_(k) at time t_(k). The sequence of hidden states thatachieves this maximal probability is the partial best path. The partialprobability and its associated best path exist for each cell of thetrellis (i.e. for any triplet j, t_(k), and o _(k)) In particular, eachstate at the final time t_(k)=T (i.e. end of the observation sequence)will have a partial probability and a partial best path. The overallbest path is associated to the state with the maximum partialprobability.

This maximum partial probability may be defined recursively. Recall thatthe Markov assumption in the case of a first order Markov model statesthat the probability of j_(k) ¹ occurring after a sequence depends onlyon the previous state. Hence, the most probable path to the hidden statej_(k) ¹ at time t_(k) and observation o_(k) is given by:

$\begin{matrix}{{\Pr\left( {j_{k}^{1}\mspace{14mu}{at}\mspace{14mu}{time}\mspace{14mu} t_{k}\mspace{14mu}{and}\mspace{14mu}{observation}\mspace{14mu} o_{k}} \right)} = {\max_{i \in {\{{1,2,3}\}}}\begin{bmatrix}{\Pr\left( {j_{k - 1}^{i}\mspace{14mu}{at}\mspace{14mu}{time}\mspace{14mu} t_{k - 1}\mspace{14mu}{and}\mspace{14mu}{observation}\mspace{14mu} o_{k - 1}} \right) \times} \\{{\Pr\left( {j_{k}^{1}/j_{k - 1}^{i}} \right)} \times {\Pr\left( {\left( {o_{k}\mspace{14mu}{at}\mspace{14mu} t_{k}} \right)/j_{k}^{1}} \right)}}\end{bmatrix}}} & (9)\end{matrix}$The first term of the right-hand side of the above equation (9) is givenby the partial transition probabilities and the third by the observationprobabilities. The probability of the partial path to the state j_(k)^(i) ⁰ at time t_(k) and observation o_(k) is recursively computed in ageneral way as:

$\begin{matrix}{{\delta_{t_{k}}^{j_{k}^{i_{0}}}\left( o_{k} \right)} = {\max_{i \in {\{{1,2,\mspace{11mu}{\ldots\mspace{14mu} n}}\}}}\left\lfloor {{\delta_{t_{k - 1}}^{j_{k - 1}^{i}}\left( o_{k - 1} \right)}a_{j_{k}^{i_{0}}j_{k - 1}^{i}}b_{j_{k}^{i_{0}}o_{k}}} \right\rfloor}} & (10)\end{matrix}$Equation 10 provides the partial probability

δ_(t_(k))^(j_(k)^(i₀))(o_(k))at each intermediate and final hidden state of the trellis. Recall thatthe aim is to find the most probable sequence of states through thetrellis given an observation sequence. Hence, one needs to develop atechnique of “remembering” the partial best paths through the trellis.This remembering can be achieved by holding, for each state, a backpointer that points to the predecessor state that optimally led to thecurrent state; that is:

$\begin{matrix}{{\phi_{t_{k}}\left( j_{k}^{i_{0}} \right)} = {\arg\left\langle {\max_{i \in {\{{1,2,\mspace{11mu}{\ldots\mspace{14mu} n}}\}}}\left\lbrack {{\delta_{t_{k - 1}}^{j_{k - 1}^{i}}\left( o_{k - 1} \right)}a_{j_{k}^{i_{0}}j_{k - 1}^{i}}} \right\rbrack} \right\rangle}} & (11)\end{matrix}$

The operator at the right-hand side of the equation (11) selects theindex i which the bracketed expression. This expression is calculatedfrom the previous partial probability δ of the preceding time step andthe transition probabilities. It does not include the observationprobability as in (10). The foregoing Viterbi algorithm may be used todecode an observation sequence providing two important advantages: i)reduction in computational complexity by developing a recursiverelationship between partial probabilities and ii) providing the bestinterpretation given the entire sequence of the observations.

Referring now to FIG. 31, shown is a representation 1400 of thecalculation of the Viterbi coefficients. The calculation of thesecoefficients is similar to the calculation of partial probabilities inthe forward algorithm. Consider, for instance, the same example 1240 andcalculate the Viterbi coefficients at time t=t₁ for the “Unhappy” statewith a sequence of observation (“A”, “B”).

The representation 1400 is similar to the representation 1240. Onedifference is that the summation operator of the forward algorithm of1240 is replaced by the maximization operation in the Viterbi algorithmin 1400. It should be noted that the Viterbi algorithm makes a decisionbased on an entire sequence rather than determining the most likelystate for a given time instant. In other words, the Viterbi algorithmdetermines the maximum probability after examining all paths.

What will now be described is the third problem, the learning problem,and the associated forward-backward algorithm (also known as theBaum-Welch algorithm). The forward-backward algorithm is an iterativeprocedure that solves the learning problem based on a set of sequencesof observations that follow a known hidden HMM. For example, a speechprocessing database may have underlying speech modeled by a Markovprocess based on known phonemes. As another example, an image databasemay have a series of images model a process for a fire within a bay.Given a current model approximation, the forward-backward algorithmcomputes the ‘forward’ probability of arriving at each state in thetrellis and the ‘backward’ probability of generating the final state ofthe model. Both of these executions are computed advantageously byexploiting recursion.

As defined elsewhere herein, coefficients α_(t) _(k) ^(j)(o_(k)) are thepartial probabilities that a given HMM has generated an observationo_(k) at instant t_(k) and at hidden state j. The Forward algorithm isbuild on a left-to-right sweep through the trellis starting from timezero (i.e. first column of the trellis) and ending at time T of the lastobservation in the sequence. The counterpart of α_(t) _(k) ^(j)(o_(k))β_(t) _(k) ^(j)(o_(k)), build on a right-to-left sweep through thetrellis starting from time T (i.e. last column of the trellis) andending at time 0, may also be defined. Similarly to α, β can be computedrecursively as follows:

$\begin{matrix}\left\{ \begin{matrix}{{{\beta_{t_{T}}^{j}\left( o_{T} \right)} = {{\varphi(j)}{b_{{jo}_{T}}\left( o_{T} \right)}}};} & {{{for}\mspace{14mu} k} = T} \\{{{\beta_{t_{k}}^{j}\left( o_{k} \right)} = {{b_{j{({k + 1})}}\left( o_{k + 1} \right)}{\sum\limits_{1 = 1}^{n}{a_{1j}{\beta_{t_{k + 1}}^{1}\left( o_{k + 1} \right)}}}}};} & {{{for}\mspace{14mu} 0} \leq k < {T.}}\end{matrix} \right. & (13)\end{matrix}$The vector φ is defined similarly to the vector π of initialprobabilities in the forward algorithm. γ_(ij)(o_(k)) may be defined asthe HMM probability of moving from the hidden state i to the hiddenstate j and observing o_(k) given the observation sequence (o₀, o₁, . .. , o_(T)); that is:

$\begin{matrix}{{\gamma_{ij}\left( o_{k} \right)} = \frac{{\alpha_{t_{k}}^{i}\left( o_{k - 1} \right)}a_{ij}{b_{ij}\left( o_{k} \right)}{\beta_{t_{k}}^{j}\left( o_{k} \right)}}{\alpha_{t_{T}}^{s_{f}}}} & (14)\end{matrix}$where α_(t) _(T) ^(s) ^(f) , known as the alpha terminal, is theprobability that the HMM generated the observation sequence (o₀, o₁, . .. , o_(T)). The expected number of transitions from state i to state jgiven

$\left( {o_{0},o_{1},\ldots\mspace{14mu},o_{T}} \right)\mspace{14mu}{is}\mspace{14mu}{\sum\limits_{k = 0}^{T}{\gamma_{ij}\left( o_{k} \right)}}$and the expected number of transitions from state i to all other statesis

$\sum\limits_{k = 0}^{T}{\sum\limits_{1 = 1}^{n}{{\gamma_{i\; 1}\left( o_{k} \right)}.}}$The coefficients α_(i,j) and b_(ij) can be then recomputed as follows:

$\begin{matrix}{{{\hat{a}}_{ij} = \frac{\sum\limits_{k = 0}^{T}{\gamma_{ij}\left( o_{k} \right)}}{\sum\limits_{k = 0}^{T}{\sum\limits_{1 = 1}^{n}{\gamma_{i\; 1}\left( o_{k} \right)}}}}{{and},}} & (15) \\{{{\hat{b}}_{ij}\left( o_{1} \right)} = \frac{\sum\limits_{{k \ni o_{k}} = o_{1}}{\gamma_{ij}\left( o_{k} \right)}}{\sum\limits_{k = 0}^{T}{\gamma_{i\; 1}\left( o_{k} \right)}}} & (16)\end{matrix}$Equation (15) means that the estimate of a_(ij) is recomputed as theprobability of taking the transition from state i to state j. However,equation (16) means that the estimate of b_(ij)(o₁) is recomputed as theratio between the frequency that symbol o₁ is emitted and the frequencythat any symbol is emitted. a_(ij) and b_(ij)(o₁) given respectively by(15) and (16) are unique global values. This means that at everyiteration there is an improvement of the HMM unless it is already in acritical point. The following steps may be used to define theforward-backward algorithm:

-   -   1. Guess an initial set of the parameters {a, b}    -   2. Compute â_(ij) and {circumflex over (b)}_(ij) using the        re-estimation formulas (15) and (16)    -   3. Set â_(ij) to a_(i,j) and {circumflex over (b)}_(ij) to        b_(ij)

As described elsewhere herein, an HMM may be used if hidden states of aparticular phenomena under investigation are accessible through someobservations. In one embodiment in connection with images, HMM may beused to model the distribution map, for example, of fire and smoke,within the space domain. Hidden states representing, for example, normalair, smoke and fire may be defined in one embodiment. Variousinterpretations may be investigated including, for example, coefficientsof the Karhunen-Loeve Transform (KLT) for each feature underconsideration.

In connection with the distribution map as described above, reference ismade to one or more types of features that may be based upon an imagedistribution map. For example, intensity, such as the gray level valueassociated with a pixel distribution, is one way to reference thedistribution of pixels in a given frame or image. Other features inaddition to pixel intensity may be used to describe and characterize thedistribution map of various regions of interest in a particular framesuch as, for example, fire, smoke, or hot spots. Among those features,one may also consider Fourier descriptors, wavelet coefficients,statistical moments, and the like. These features may be evaluated,decoded, and taught to the HMM to identify various regions of interestin a particular image. Thus, a distribution map may relate to one ormore features including direct intensity level values of image pixels aswell as single or combined relevant factors such as time, statisticalproperties, correlation between pixels, and the like.

An embodiment using the HMM technique described herein may use the threegeneral solutions described elsewhere herein to be solved referenced asthe evaluation problem, the decoding problem, and the learning problem.The evaluation problem may be used to determine the probability of anobserved sequence such as hot spot to smoke to fire or the sequence hotspot to hot spot to smoke for example. The decoding problem may be usedto estimate the most likely sequence of underlying hidden states thatmight have generated a particular observed sequence. Knowing in aprobabilistic way the hidden sequence that enables the HMM process toproduce a given sequence may be used in confirming and predicting theevolution of a particular sequence either on time or on space tocharacterize growing and shrinking regions in an image.

The description of an observation of a particular process at hand, forexample, such as one of fire, smoke or a detected hot spot, may beclosely related to the feature being used. Once a given feature, such asthe pixel gray level or the energy indicator, is decided upon to beincluded in an embodiment, various matrices described herein inconnection with the HMM model may be determined. In particular, inconnection with a particular feature, the initial probability matrix,the transition matrix, and the confusion matrix may be determined.Recall that the initial probability matrix represents the determinationof the probabilistic matrix defining the initial condition of the state.The transition matrix includes probabilities of moving from one hiddenstate to another. The confusion matrix includes probabilities ofobserving a sequence given an HMM process. Values of the probabilitymatrices depend on the selected features and the adopted statisticalmethod used to classify those particular features. Consider an examplein which the pixel gray level is a feature to be used. A smoky regionmay be defined as a set of contiguous pixels with values in the interval[S1, S2]. A fire region may be defined as a set of contiguous pixelswith values in the interval [F1, F2]. A hot spot region may be definedas a set of contiguous pixels with values in the interval [H1, H2]. Indetermining such distributions, an embodiment may use a statisticallymeaningful set of images of pixels such as thousands of images. Theprobability of a given pixel to be in one of the various regions ofinterest such as the smoky region may be calculated as the ratio of thenumber of pixels whose intensity values are within the particular range[S1, S2] and the total number of pixels. A pixel may vary in one or moreparticular regions in accordance with time. The forward algorithm asdescribed elsewhere herein in connection with the evaluation problem maybe used in providing an estimation of the probability of the systemchanging from one state to another such as used in connection with thetransition matrix. An embodiment may also use a more heuristic approachin accordance with experience and common sense of inexperienced user todetermine the values of particular matrices described and used inconnection with defining an HMM.

In the foregoing, it should be noted that the forward algorithm as maybe used in connection with the evaluation problem described elsewhereherein may be used in determining an estimation of the probabilitiesused in connection with the transition matrix. An example of a use in anembodiment of the decoding problem and associated algorithm is that itmay first be executed to determine the most likely sequence ofunderlying hidden states given a particular observed sequence. Thisdecoding problem and associated algorithm may be used in connection withconfirming or denying the existence of a particular state such as fire,smoke and the like. Similarly, the learning problem as described hereinmay be used in determining model parameters most likely to havegenerated a sequence of observations and may be used in providinginitial values for probabilities as part of a learning phase, forexample, in connection with determining probabilities the statetransition matrix and confusion matrix.

In connection with an HMM, the KLT transform is a decompositiontechnique that is a variation of the PCA also described herein. Itshould be noted that PCA may also be referred to as the Hotellingtransform. The KLT decomposition or transformation technique may becharacterized as a decorrelation technique proceeding by finding anorthogonal set of eigenfunctions that capture, in increasing order, mostof the image energy (entropy information or a variability betweenpixels). The data may then be expanded in terms of an eigenfunctions ateach frame, varying in time or in space, for example. The variation ofthe KLT coefficients v. time in space describes the dynamics of theparticular process. The KLT may be preferred in an embodiment, forexample, when the data contains a certain degree of symmetry. The KLTdecomposition technique extracts features that may not be ostensible inthe original image and preserves essential information content in theimage where the reduced number of features. These features, as describedelsewhere herein, may be used as an input in connection with the HMMprocessing or any other image classification and interpretation processsuch as, for example, the neural net, fuzzy logic, multiple model stateestimator, and the like also described elsewhere herein.

Note that for the example of HMM provided herein, hidden customer stateswere provided. However, it would be possible to adapt this example tofire detection by replacing the customer states with variousfire-related states, such as no fire, fog, and smoke situations. For ageneral discussion of HMM and applications thereof, see L R Rabiner andB H Juang, “An introduction to HMMs,” IEEE ASSP Magazine 3, pp. 4-16,January 1986.

The features which are obtained from a particular image or set of imagesobserved may be initially determined to correspond to a particularcondition, such as smoke, fire, and the like. In one embodiment, once aparticular alarm condition has been determined, one or more estimatorsmay be used to obtain the “true” values of the particular features. Theuse of the estimators may be characterized as a type of filtering toprocess feature values. There may be many estimators running in parallelas fire-related image features, for example, are identified.

Described in following paragraphs are techniques that may be included inan embodiment having a plurality of estimators. Each estimator may beutilizing a different model of the system being considered. An estimatormay be utilizing, for example, the PCA technique or the multiscalemodeling technique. Inputs to the estimators may be the features underconsideration that may be combined and accordingly weighted to produce afinal result or estimate as to the existence of a particular state. Byusing multiple state estimation modules, an embodiment may reducedependence of the overall state estimator on stand-alone fault detectorsand provide a more robust system against sensor faults.

The multiple state estimation module and techniques used therein may beincluded in the multi-camera fusion routine 232 in an embodiment. Itshould be noted that other embodiments may include the multiple stateestimation module and techniques used therein in other components of asystem.

An embodiment may include features or sensors of different types thatare inputs to the estimators. In one embodiment, these features may beextracted from images as described herein. The techniques described infollowing paragraphs uses analytical redundancy such that the inputs(sensor data or features based thereon) to the estimators depend on eachother via a set of equations.

In this instance, the inputs to the multiple state estimation modulecorrespond to features determined, for example, by the featureextraction routines 206, 206′, 206″ using, for example, featureextraction techniques like those discussed herein, such as frame energydetermination, edge detection, PCA, etc One type of estimator mayutilize Kalman filtering techniques. The concept of event detection viaKalman filtering is based on comparison between expected and actualprediction error, where an event is defined as a transition betweenstates such as a transition from a no fire state to a fire state. Ateach iteration, the filter makes a prediction of future feature valuesŷ_(k+1|k)═C{circumflex over (x)}_(k+1|k)and compares the estimated or computed value it to the actual featurevalue. In an extended Kalman filter, the prediction is made via anonlinear function ŷ_(k+1|k)=g({circumflex over (x)}_(k+1|k)). Thecorrection step is based on the assumption that the prediction errorse _(k+1) =y _(k+1) −ŷ _(k+1|k)referred to as innovations, form a sequence of uncorrelated Gaussianvariables with zero mean and covariance S_(k+1)=Σ_(k+1|k)+R_(k+1) whereinnovation covariance is denoted as S; in [3] it is denoted Σ).Intuitively speaking, unusually large (or small) values of innovationindicate that the model used by the filter does not adequately representthe actual system. A method suggested in Y. Bar-Shalom and X.-R. Li,Estimation and tracking: principles, techniques, and software, ArtechHouse, 1993 is to monitor normalized squared innovationε_(k)=e_(k) ^(T)S_(k) ⁻¹e_(k)which, if the model is correct, has a χ² distribution with m degrees offreedom. At a risk of delayed change detection, a system may alsomonitor a moving average of past s innovations

$ɛ_{k} = {\overset{k}{\sum\limits_{j = {k - s + 1}}}{e_{j}^{T}S_{j}^{- 1}e_{j}}}$which should have χ² distribution with ms degrees of freedom. Then, anevent can be signaled if ε_(k) exceeds a threshold value, based on somepre-specified tail probability. This technique is suitable if the goalis a Boolean choice between two competing hypotheses: that the model iscorrect and that it is not. In using a particular model, observeddiscrepancies may be caused not only by events, but also, for example,by inaccurate specification of noise parameters Q and R. Consequently,event detection based on statistical testing of normalized innovationmay be very sensitive to threshold choices.

An alternative method to the foregoing to assess model validity usinginnovations is based on multi-dimensional distribution of theinnovation. If the model is correct, feature vector y_(k+1) (featuresextracted from the k+1 image) has Gaussian distribution with meanŷ_(k+1) and covariance S_(k+1), or equivalently innovation e_(k+1) hasGaussian distribution with zero mean and covariance S_(k+1). Likelihoodof the current feature vector Y_(k+1), conditioned on the previousfeature vectors, is the value of the corresponding probability densityfunction calculated at point e_(k+1)

${p\left( {\left. y_{k + 1} \middle| {\hat{y}}_{k + 1} \right.,S_{k + 1}} \right)} = \frac{\exp\left( {{- \frac{1}{2}}e_{k + 1}^{T}S_{k + 1}^{- 1}e_{k + 1}} \right)}{\sqrt{\left( {2\pi} \right)^{m}{\det\left( S_{k + 1} \right)}}}$Calculation of likelihood values for different competing models allowsdifferentiating between those models that fit the observed data betterthan the others. In the multiple-model estimation techniques, the abovelikelihood value may be used to generate relative weighting forcombining estimates from the different models and associated estimators.

The multiple models may be weighted as described below. Suppose thatthere are K competing state estimators, each utilizing a different modelof the system. Suppose that prior to measurement at moment k+1, an i-thestimator produced its own state estimate {circumflex over (x)}_(k+1|k)^((i)), its covariance

$\sum\limits_{{k + 1}|k}^{(i)},$the predicted feature vector value ŷ_(k+1) ^((i)), and the innovationcovariance S_(k+1) ^((i)). Assume also that based on observationscollected so far, probability that the i-th model is the correct one hasbeen assessed as P_(k+1|k) ^((i)). Then, after the features calculatedon image k+1(y_(k+1)) arrives, each of the estimators performs its ownstate update {circumflex over (x)}_(k+1|k+1) ^((i)) and calculates anupdated covariance

$\sum\limits_{{k + 1}|{k + 1}}^{(i)}.$In addition, for each estimator there is an innovation e_(k+1)^((i))=y_(k+1)−ŷ_(k+1|k) ^((i)) and the associated likelihood of theobserved feature vector

${p_{k + 1}^{(i)} \equiv {p\left( {\left. y_{k + 1} \middle| {\hat{y}}_{{k + 1}|k}^{(i)} \right.,S_{k + 1}^{(i)}} \right)}} = \frac{\exp\left( {{- \frac{1}{2}}{e_{{k + 1}|k}^{{(i)}^{T}}\left( S_{k + 1}^{(i)} \right)}^{- 1}e_{{k + 1}|k}^{(i)}} \right)}{\sqrt{\left( {2\pi} \right)^{m}{\det\left( S_{k + 1}^{(i)} \right)}}}$At this point, the Bayes formula may be used to update the probabilitiesof the competing models

$p_{{k + 1}|{k + 1}}^{(i)} = \frac{p_{k + 1}^{(i)}P_{{k + 1}|k}^{(i)}}{\sum\limits_{j = 1}^{K}{p_{k + 1}^{(j)}P_{{k + 1}|k}^{(j)}}}$Note that some models may only be concerned with a subset of thefeatures, but for clarity of notation it is assumed in the discussionherein that all features are provided to all models. With the posteriorprobabilities calculated, the combined estimate and its approximatecovariance is calculated using formula for approximation of mixture ofGaussian densities

${\hat{x}}_{k + 1} = {\sum\limits_{i = 1}^{K}\;{P_{{k + 1}|{k + 1}}^{(i)}{\hat{x}}_{{k + 1}|{k + 1}}^{(i)}}}$$\Sigma_{k + 1} = {\sum\limits_{i = 1}^{K}\;{P_{{k + 1}|{k + 1}}^{(i)}\left( {\Sigma_{{k + 1}|{k + 1}}^{(i)} + {v_{k + 1}^{(i)}v_{k + 1}^{{(i)}^{T}}}} \right)}}$where terms v_(k+1|k) ^((i)) represent the spread of means of allestimators around the weighted average{circumflex over (x)} _(k+1) :v _(k+1) ^((i)) ={circumflex over (x)}_(k+1) −{circumflex over (x)} _(k+1|k+1) ^((i))The above formulae and associated description may be utilized inconnection with the multiple-model estimation techniques describedherein. The difference between different multiple-model estimationtechniques is due to the way in which the prior estimates {circumflexover (x)}_(k+1|k) ^((i)),

$\sum\limits_{{k + 1}|k}^{(i)},$and P_(k+1|k) ^((i)) (to be used in the next iteration k+1) arecalculated from the posterior estimates {circumflex over (x)}_(k|k)^((i)),

$\sum\limits_{k|k}^{(i)},$and P_(k|k) ^((i)) (generated in the previous iteration k).

Following is a description of how the basic concept of multiple-modelestimation may be used for detection of changes in the status of thebay, such as appearance of a smoke cloud, hot spot or a flame. Thefeature extraction stage that preceds the multiple estimator moduleoutputs a set of features that characterize the image. This set may berepresented as a vector of M inputs to the multiple model estimator. Toprovide possibility of detecting all events of interest, a separatestate estimator may be included for each of possible K states of thecargo bay. Each of the K models associated with different possiblestates of the cargo bay may use some or all elements of the featurevector. Each model incorporates different mechanism of predicting futurevalues of the feature vector assuming that's its hypothesis about thestate of the bay is correct. The prediction function of the i-th modelmay be expressed asŷ _(k+1) ^((i)) =g ^((i))({circumflex over (x)} _(k+1|k) ^((i)))Innovation for this model may be calculated as:e _(k+1) ^((i)) =y _(k+1) ^((i)) −ŷ _(k+1|k) ^((i)) =y _(k+1) −g^((i))({circumflex over (x)} _(k+1|k) ^((i)))Different measurement prediction functions g^((i)) can be used bydifferent models. Referring now to FIG. 32, shown is an example of a anembodiment of the multiple-model estimator 2000. All estimators haveaccess to the same feature vector and use to predict the future valuesof the feature vector based on their different assessment of the stateof the cargo bay. The likelihood of current feature vector under eachmodel is determined and the one estimator with the highest likelihoodvalue dominates the fused output. In other words, we select the outlierin terms of the likelihood function as the selected correct model.

Referring now to FIG. 33, shown is another example of an embodiment of amultiple model estimation technique that may be characterized as a noninteracting multiple state model.

In this arrangement 2020, the multiple models run separately, with nointeractions between the internal state of other models. The only mixingof the estimates is the calculation of the combined output. Theprediction of the next state and measurement in each estimator is basedonly on its own previous estimate:{circumflex over (x)} _(k+1|k) ^((i)) =f ^((i))({circumflex over (x)}_(k|k) ^((i)))ŷ _(k+|k) ^((i)) =g ^((i))({circumflex over (x)} _(k+1|k) ^((i)))For calculation of appropriate covariance matrices, separate Jacobianmatrices A_(k) ^((i)) and B_(k) ^((i)) are obtained for each filter bylinearizing functions ƒ^((i)) around the posterior estimates {circumflexover (x)}_(k|k) ^((i)) from the previous moment k, and Jacobians C_(k+1)^((i)) are found by linearizing functions g^((i)) around the predictedestimates {circumflex over (x)}_(k+1|k) ^((i)). As a starting condition,the system may use initial state estimates {circumflex over (x)}_(0|0)^((i)) for each of the estimators, as well as prior probabilitiesP_(0|0) ^((i)).

The arrangement 2020 utilizes techniques that may be referred to as theZOA or zero-order approximate filter as described in D. T. Magill,“Optimal adaptive estimation of sampled stochastic processes”, IEEETransactions on Autornatic Control, vol. 10, 435-439, 1965; and D. G.Lainiotis, “Partitioning: a unifying framework for adaptive systems, I:estimation”, Proceedings of the IEEE, vol. 64, 1127-1143; and K. A.Loparo, M. R. Buchner and K. S. Vasudeva, “Leak detection in anexperimental heat exchanger process: a multiple model approach”, IEEETransactions on Automatic Control, vol. 36, 167-177, 1991.

An embodiment utilizing the ZOA technique may be based on the assumptionthat one of the competing models/estimators is correct at all times inthat only one hypothesis about the internal state of the aircraft bay islikely all the time,. Because of this, the a priori probability at thebeginning of step k+1 is the same as the a posteriori probability at theend of step kP_(k+1|k) ^((i))=P_(k|k) ^((i))

An embodiment using the ZOA approach may have the probability of allmodels, except the one most likely, decay virtually to zero because ateach iteration the a priori probability is multiplied by the relativelikelihood of the current observation under the particular model.Therefore, after some time, the estimator may lose ability to detectchanges and adapt. An embodiment may compensate for this, for example,by specifying some small lower bound on probability of each possiblemodel, to keep all models “alive” even when highly unlikely.

Another multiple state model estimation technique may be referred to asthe generalized pseudo-Bayesian algorithm I (GPBI). This multiple-modelapproach is an approximation of the optimal Bayesian estimation for asystem that may switch from one operational regime to another, forexample, as described in G. A. Ackerson and K. S. Fu, “On stateestimation in switching environments”, IEEE Transactions on AutomaticControl, vol. 15, 10-17, 1970; and Y. Bar-Shalom and X. -R. Li,Estimation and tracking: principles, techniques, and software, ArtechHouse, 1993. This particular technique is based on the assumption thatthe system configuration (or operational regime) may change randomly atany time. The system is modeled as a Markov chain—that is probability ofa switch from regime (or model) i to regime j depends only on thecurrent regime, and is not dependent on history of previous switches.This makes it possible to recover from a misdiagnosed event or to detecttemporary events, such as forming of fog that subsequently disperses, ora flame that is subsequently suppressed by an extinguishing action.

An embodiment using the GPBI technique includes a matrix of transitionprobabilities P_(T), whose elements p_(i,j) are a priori probabilitiesthat a switch from model i to model j may occur at any given iteration.The transition probabilities are used to calculate the prior probabilityof model i at the start of iteration k+1 as a function of all posteriorprobabilities at the end of iteration k

$P_{{k + 1}|k}^{(j)} = {\sum\limits_{i = 1}^{K}\;{p_{i,j}P_{k|k}^{(i)}}}$

Because of this, model j may be still a viable option at iteration k+1even if it was unlikely at iteration k, provided that a switch from someother, more likely model is possible.

Another aspect of the GPBI approach is that at each iteration, allestimators make their temporal predictions using as a starting conditionthe same fused (weighted) estimate {circumflex over (x)}_(k|k) from theprevious iteration. In addition, for the temporal update they all usethe same fused covariance Σ_(k|k).

Referring now to FIG. 34, shown is an example of an embodiment of theGPBI technique. The example 2100 includes three inputs or feature inputsto the four estimators. Each model/estimator uses its own statetransition and measurement function to calculate its a priori estimate{circumflex over (x)}_(k+1|k) ^((i)) based on the common estimate{circumflex over (x)}_(k|k). Similarly, each estimators calculates itsown covariance matrix

$\sum\limits_{{k + 1}|k}^{(i)}$calculated from the fused covariance Σ_(k|k).

x̂_(k + 1|k)^((i)) = f^((i))(x̂_(k|k))$\sum\limits_{{k + 1}|k}^{(i)}{= {{A_{k}^{(i)}{\sum\limits_{k|k}A_{k}^{{(i)}^{T}}}} + {B_{k}^{(i)}{QB}_{k}^{{(i)}^{T}}}}}$Jacobian matrices A_(k) ^((i)) and B_(k) ^((i)) are calculatedseparately for each estimator such that linearization of functionsƒ^((i)) is performed around the points {circumflex over (x)}_(k|k)^((i)). Prediction of measurement values may be performed for each modelaccording to its own output equationŷ _(k+1|k) ^((i)) =g ^((i))({circumflex over (x)} _(k+1|k))All other computations may be performed as described in a previoussection on general multiple-model approach.

Note that the GPBI technique has interacting models, which may makeanalysis more difficult, for example, than using the ZOA technique.Additionally, if using the GPBI technique, an embodiment should notethat using a weighted sum of two likely estimates may not produce a goodfused estimate.

An embodiment may also utilize the IMM or Interactive Multiple Modelstechnique in connection with the Multiple Model State estimation. TheIMM is described in Y. Bar-Shalom and X.-R. Li, Estimation and tracking:principles, techniques, and software, Artech House, 1993. In thisapproach, global pooling of a posteriori estimates for all models isreplaced by local mixing of a priori estimates for each modelseparately. As in GPBI, one parameter is the transition probabilitymatrix P_(T). Its elements p_(i,j) are used at the beginning of eachiteration to calculate mixing coefficients μ_(k) ^(i,j), which areinterpreted as probabilities that model i was in effect during previousiteration and that model j is in effect during current iteration. Sincesuch a transition has a priori probability p_(i,j), the mixingcoefficients are calculated as follows:

$\mu_{k}^{i,j} = \frac{p_{i,j}P_{k|k}^{(i)}}{\sum\limits_{l = 1}^{K}\;{p_{l,j}P_{k|k}^{(l)}}}$Note that the expression in the denominator is in fact the a prioriprobability that model j is in effect during current operation,calculated as in GPBI algorithm

$P_{{k + 1}|k}^{(j)} = {\sum\limits_{l = 1}^{K}\;{p_{l,j}P_{k|k}^{(l)}}}$Then for each model, prior to the temporal update step, state estimatesand covariance are mixed:

${\overset{\sim}{x}}_{k|k}^{(j)} = {\sum\limits_{i = 1}^{K}\;{\mu_{k}^{i,j}{\hat{x}}_{k|k}^{(i)}}}$$\Sigma_{k|k}^{(j)} = {\sum\limits_{i = 1}^{K}\;{P_{k|k}^{({i,j})}\left( {\Sigma_{k|k}^{(i)} + {{\overset{\sim}{v}}_{k}^{({i,j})}{\overset{\sim}{v}}_{k}^{{({i,j})}^{T}}}} \right)}}$where terms {tilde over (v)}_(k) ^((i,j))) represent the spread ofnon-mixed estimates around the mixed j-th estimate {tilde over(x)}_(k|k) ^((j))v _(k) ^((i,j)) ={circumflex over (x)} _(k|k) ^(i) −{tilde over (x)}_(k|k) ^((i,j))

The prediction step is performed for each estimator separately, usingthe mixed values {tilde over (x)}_(k|k) ^((j)) and {tilde over(Σ)}_(k|k) ^((j)):

${\hat{x}}_{{k + 1}|k}^{(j)} = {f^{(i)}\left( {\overset{\sim}{x}}_{k|k}^{(j)} \right)}$$\sum\limits_{{k + 1}|k}^{(j)}{= {{A_{k}^{(j)}{\overset{(j)}{\underset{k|k}{\sum\limits^{\sim}}}A_{k}^{{(j)}^{T}}}} + {B_{k}^{(j)}{QB}_{k}^{{(j)}^{T}}}}}$ŷ_(k + 1|k)^((j)) = g^((i))(x̂_(k + 1|k)^((j)))Calculation of Jacobian matrices in IMM is performed separately for eachestimator, since the corresponding nonlinear functions are linearizedaround different points. The measurement prediction and linearization offunctions g^((i)) is performed with a different argument {circumflexover (x)}_(k+1|k) ^((j)) for every model, as in an embodiment using theZOA technique. Thus, in a general case IMM has computational complexitygreater than the non-interacting ZOA algorithm. The additional costcomes from the mixing operation—in particular from calculation of mixedcovariance matrices

$\underset{k|k}{\overset{(j)}{\sum\limits^{\sim}}}.$The final estimate output may be calculated as in GPBI and ZOAalgorithms—through a weighted sum using probabilities P_(k|k) ^((j)).Unlike in GPBI, though, the fused estimate {circumflex over(x)}_(k+1|k+1) is not used internally within the estimator.

Referring now to FIG. 35, shown is an example of an embodiment 2150 of athree-input or feature input IMM estimator.

In the foregoing, it should be noted that the GPBI and IMM approachesrequire specification of model transition probabilities. In oneembodiment, those may be probabilities of the state of the bay changing,for example from clear to foggy or smoky. The form of transitionprobability matrix corresponds to the user's knowledge, or belief aboutlikelihood of such a change of the bay state in any given time instant.At the same time, the structure of the matrix may influencecomputational load of the algorithm.

As mentioned before, a significant fraction of processor time may bespent calculating the fused or mixed covariance matrices. Since themixing coefficients μ_(k) ^(i,j) in IMM are proportional to modeltransition probabilities p_(i,j), it follows that a sparse matrix P_(T)may help significantly reduce computational effort such that the onlynon-zero contributions to the mixed covariance are those that correspondto non-zero p_(i,j).

If no specific prior knowledge is available about transitionprobabilities, then a sensible approach is to utilize a dense transitionprobability matrix in which all elements of the transition matrix areequal:

$p_{i,j} = \frac{1}{M + 1}$This, in Bayesian terms, may be characterized as a non-informative casein that nothing is known about probabilities of input faults, so anymodel transition is judged equally probable at any given time. Anembodiment of the three feature or three-input example may use a matrixrepresented as:

$P_{T} = \begin{bmatrix}\frac{1}{4} & \frac{1}{4} & \frac{1}{4} & \frac{1}{4} \\\frac{1}{4} & \frac{1}{4} & \frac{1}{4} & \frac{1}{4} \\\frac{1}{4} & \frac{1}{4} & \frac{1}{4} & \frac{1}{4} \\\frac{1}{4} & \frac{1}{4} & \frac{1}{4} & \frac{1}{4}\end{bmatrix}$Even though the foregoing is a dense matrix, use of this matrix leads todramatic reduction of computational effort in IMM. In fact, anembodiment using IMM in this instance may be computationally equivalentto the GPBI algorithm, since all mixing equations are the same.

In an embodiment, if transition probabilities are approximately knownand different, then it is possible to exploit those differences bypropagating-independent multiple models. Alternatively, if there islittle or no knowledge about transition probabilities, there is noadvantage in using more sophisticated techniques, and simple pooling asin GPBI may be included in an embodiment.

The uniform matrix structure above may seem extremely conservative inits assessment of risk, that is it assumes that any fire-relatedscenario is as likely as the non-fire scenario. In the sparse structure,small transition probabilities may be used and characterized as“cautious”. Using the uniform matrix may lead to frequent false alarms,but recovery from a misdiagnosis may be easy in comparison to othertechniques and values. Since maximal distance between any two nodes onthe transition graph is equal to one, the technique used should be ableto quickly recover and detect true fire events.

What will now be described are some implementation concerns that may betaken into consideration for an embodiment.

One difficulty in using the proposed multiple-model estimation schememay be the necessity to calculate likelihood values. As describedelsewhere herein, calculation of likelihood values requires inversion ofinnovation covariance matrix S_(k+1), and calculation of itsdeterminant. Both problems may be solved if all covariance matrices arerepresented using modified Cholesky, or upper-unit-triangular-diagonal(UD) factorization, for example, as explained in M. S. Grewal and A. P.Andrews, Kalman filtering: theory and practice, Prentice Hall, 1993. Aninnovation covariance matrix may be written as:S=U_(S)D_(S)U_(S) ^(T)where U_(S) is the upper-unit-triangular factor (with ones on its maindiagonal), and D_(S) is the diagonal factor. The determinant of thecovariance matrix may be expressed as the product of diagonal elementsof D_(S)det S=Πd_(i,i)This factorization technique provides for avoiding inversion of matrixS. Special form of factors U_(S) and D_(S) facilitates calculation ofS⁻¹e.

An embodiment using Kalman filtering within the estimator may assumeuncorrelated measurement noises—that is matrix R is diagonal. In thiscase, the observational update in Kalman filtering algorithm may beperformed sequentially—a version using UD factorization of matrixΣ_(k+1|k), as described in section 6.5.3 of M. S. Grewal and A. P.Andrews, Kalman filtering: theory and practice, Prentice Hall, 1993,such that the direct factorization of S_(k+1) is not necessary. In otherwords, diagonal elements of D_(S) naturally appear as a by-product ofthe observational update procedure, as do elements of S⁻¹e. Therefore,in case of uncorrelated measurement noise, calculation of likelihoodvalues requires virtually no additional computational effort.

In an embodiment utilizing a standard Kalman filter as an estimator,calculation of a priori covariance matrix may be computationallyexpensive:Σ_(k+1|k) =A _(k)Σ_(k|k) A _(k) ^(T) +B _(k) QB _(k) ^(T)

An efficient method to compute UD factors of Σ_(k+1|k) in terms offactors of Σ_(k|k) and Q is given in section 6.6.3 of M. S. Grewal andA. P. Andrews, Kalman filtering: theory and practice, Prentice Hall,1993. This method may also be used with a sum of more than two matrices,so that factorization of the mixed covariance can be performed using thealready available factors of the contributing covariances. An advantageof using UD factorization approach is that multiplication of a matrix bya mixing coefficient μ may use only m scalar multiplications of diagonalfactors, rather than

$\frac{m\left( {m - 1} \right)}{2}$multiplications

In IMM and GPBI, an embodiment may change number and structure of theindividual estimators. Based on observed feature vectors and operatingconditions. Some models may be removed from the list of viable m\syetmmodel, and some other may be added.

In case of elimination or addition of certain models, the transitionprobability matrix P_(T) may be rectangular, instead of square. In anembodiment, it may also necessary that all newly added models use thesame structure of the state vector, so that mixing and fusing of stateestimates and covariance matrices is possible. An embodiment using theZOA technique may not take into account this latter condition wherethere is no interaction between estimators. State vectors of differentestimators may have different dimensionalities, as long as the fusedoutput is in their common subset.

The foregoing describes multiple model state estimator techniques. Inparticular, described herein are embodiments of the IMM, GPBI and ZOAmultiple model state estimator techniques that may utilize a pluralityof estimators. These estimators may use as their inputs differentfeature vectors, which may result from different feature extractionmethods such as PCA, wavelet transforms, and others. Each of theseestimators may be used to predict an expected next set of feature valuesand compare those to actual input. The output values of estimators maybe weighted and combined in accordance with the particular multiplemodel state estimator technique utilized. The way in which theestimators and inputs are arranged as described herein provides fordetection and confirmation of change of state of the aircraft bay, forexample, in the instance of fog or smoke formation.

It is also possible to use fuzzy logic to process the featuresdetermined at the feature extraction routines 206, 206′, 206″. Fuzzylogic is a known system of implementing, for example, rule-based expertsystems that can account for uncertainties in values and rules appliedthereto. It would be straightforward to one of ordinary skill in the artto process features extracted at the feature extraction steps 206, 206′,206″ using fuzzy logic to detect the presence or absence of fire.

The system described herein may be seen as a particular application of amore general Autonomous Vision System (AVS) which is a concept for afamily of products. The AVS provides a user with a tireless automatedsurveillance capability to monitor various elements of the aircraftintegrity. The system may be used in applications where surveillance isneeded and simple decisions for immediate corrective actions are welldefined. Most of the hardware and software described herein isexpandable to various applications of the AVS where analysis of “visual”phenomena is expected. Some examples of other AVS applications, wheremost of the system functions can be expanded, are described below.

The system may handle parked aircraft surveillance by monitoring thesurroundings of the airplane by cameras and by detecting unexpectedmotion or intrusion such as loitering or movement of unauthorizedpersonnel in restricted areas. The system can also be designed to takeactions against acts of vandalism (e.g. forceful intrusion, intentionaldamage of the aircraft by stones and other means) by issuing an alarmsignal to a designated third party through a wireless connection. Thislatest feature is useful particularly for general aviation and businessjets that may have to park in remote areas and small airports (in the USand abroad) where aircraft and crew physical protection is inadequate.The concept would include standard surveillance function plus addedintelligence in image processing, situational awareness, decisionprocess and then some type of notification. This notification could bevia some wireless, internet or other technique which would remote theinformation to some security center any where in the world or even tothe pilot in his hotel room via his lap top computer.

The system may also be used for aircraft taxiing and moving assistance.The system would provide “eyes” for the pilot when moving the aircraft.In particular, the system could help assess wing tip clearances andverify that nothing is in the path of backing out aircraft. Thisfunctionality of enhancing the pilot awareness is useful for nose wheelsteering and other activities such as docking. The value differencewould be the augmentation of the video with intelligence to prompt hepilot of pending critical situations via the classical image process,situational awareness, decision algorithms and notification throughhuman friendly graphical or other interfaces.

The system may also handle runway incursion prevention. The system couldprovide video monitoring data and possibly issue alerts to the crew ifanother plane, a ground vehicle, an airport crew, or any otherunauthorized body or material (e.g. chocks) is intruding onto therunway. The system would improve the aircraft safety and help preventon-the-ground collisions at overcrowded airports. The system could betied to GPS and a data base of runway features to provide the pilot withan enhance image at several levels, including a synthetic heads updisplay.

The system may be used for pilot alertness monitoring. Long flightoperations can often result in fatigue and disruption that maysignificantly diminish the pilot alertness leading to a decline in thesafety margin of the aircraft and its crew. A way to detect pilotfatigue is highly desirable to prevent fatigue-related accidents. Oneway to check the pilot awareness is to directly monitor his/her eyes(and face) to detect micro-sleeps, head nodding, and eyelid movements. Avideo-based system, where a camera points directly toward the pilot'sface and monitors the eyelid droop, pupil occlusion, and eyelid closure,seems an appropriate technique to implement this approach for pilotawareness monitoring.

The system may also be used as way for the aircrew to survey thesituation of the physical aircraft. An option of showing images fromoutside of the aircraft body parts and the surroundings is a particularsystem upgrade that may become a baseline in the future. This couldinclude the Goodrich Ice Hawk product function for detection of wingicing and complementary functions. This function may have also dual useas entertainment display for passengers. Live view from outside theairplane to the cabin passengers can be put in an entertainment anddistraction context, particularly for business jet passengers.

The system could be used for monitoring of aircraft body parts and otherinaccessible area for safety and security enhancement. Dedicatedvideo-based systems with specific functions, cameras, and optics can bedesigned to monitor specific parts of the aircraft that include, forexample, i) wheel wells and landing gear (e.g. to look for closure andhot spots); ii) engine nacelle; iii) battery compartment; iv) oxygengenerator compartment; v) electronics compartment; vi) radarcompartment; vii) communication compartments; viii) flaps; ix) actuatormovement; x) wings (Tail mounted camera and others provide view of A/Cwhile in flight to look for wing icing); xi) access door; and xii)cabin.

The AVS may be designed to sense patterns of interest at the monitoredplaces such as motion, smoke, flames, hot spots (by means of the IRsensor), signs of fatigue, or suspicious action. Upon detection andverification (by numerous cameras and sensor fusion techniques) ofpatterns of interest, the system can be designed to take a set ofpredefined actions that include i) issuing an alarm to a third partywith the specific type of threat; ii) initiating video recording of theview of interest and transmitting it to a remote location for storage orindependent review. The importance of this action is such that the videorecording may begin before the event could take place; and iii) takingmeasures to protect the aircraft such as turning the lights on ifapplicable, stopping the aircraft movement on the ground, and releasingof fire extinguishing agents.

The scope of the AVS can be expanded beyond the commercial aerospacesegment to include military applications and other ground and seatransportation vehicles. Potential applications of the AVS in themilitary segment includes tanks and military vehicles to augment theuser vision and awareness situation. Almost all the above applicationsapply to busses and heavy trucks. An AVS integrated to a large ship orsubmarine can provide close maneuvering and docking, monitoring exteriorconditions and hazardous areas such as cargo bays, motor winch andmunitions compartments.

Hardware and software elements of the system described herein may beexpanded to other applications without or with minor changes. Camerasand associated modules (CCD or CMOS type cameras) and IR (Infra Red) aredirectly expandable to other applications. In particular, cameras opticsthat include lenses and camera calibration routines are expected to beapplicable with minor changes to most of the mentioned AVS applications.A Digital Signal Processor unit may be used herein to process and movevideo data between cameras, memory units, logging system, and displayscreen. Characterization of the DSP unit including memory capacity,periphery architecture, processing speed and style (e.g. serial orparallel), and data bus configuration may be directly expandable toother AVS products. Image processing and decision making techniquesconstitute a universal platform that may be applicable to any AVSproduct. Among such image-processing functions that are directlyexpandable, it is expected that others that will be developed andtested. Validated and verified algorithms are expected to be applied toother AVS products directly or with some minor changes. These algorithmsinclude spatial transformation, gray-level interpolation, correlationtechniques, lowpass filtering, highpass filtering, homomorphicfiltering, generation of spatial masks for enhancement, generation ofspatial masks for restoration, image subtraction, image averaging,intensity transformation, histogram processing, gray levelinterpolation, inverse filtering to remove blur caused by linear motion,algebraic approach, Wiener filter, constrained least squaresrestoration, line detection, edge detection by gradient operator, edgedetection by Laplacian operator, edge detection by Canny and Sobeloperators, multiscale decomposition, edge linking, segmentation bythresholding, illumination effect, global thresholding, optimalthresholding, adaptive thresholding, multivariable thresholding,region-oriented segmentation, region growing by pixel aggregation andaveraging, region splitting and merging, use of motion in segmentation,spatial segmentation by accumulative differences, frequency-basedsegmentation, feature representation and extraction, representationapproach, chain codes, polygonal approximation, boundary segments,skeleton, boundary descriptors, geometrical quantities, Fourierdescriptors, moments, relational descriptors, pattern recognition anddecision making, pattern classification, decision-theoretic methods,pixel matching, optimal statistical classifiers, neural networks,structural methods, feature matching, syntactic methods, multiscalemodeling, decision making, If-Then rules, neural networks, expertsystems.

All the techniques set forth above are well defined and established inthe public domain. It is expected that most, if not all of them, can beapplied to a given AVS. Selecting one technique or another dependsmainly on the application at hand.

The foregoing system and processing performed therein may utilize avariety of different techniques in connection with smoke and/or firedetection, monitoring, and verification.

Fog may be formed within an aircraft, such as within the cargo bay of anaircraft. Smoke and/or fire detection systems as described herein mayissue a false alarm in the event that the system improperlydistinguishes between fog and smoke. Fog may be formed in any one ormore of a variety of different ways in which super-saturation is reachedsuch as, for example, during takeoff and landing of an aircraft due to arapid change in pressure that itself leads to change in temperature andconsequently to an increase in relative humidity. Empirical evidenceindicates that a large portion of false alarms due to fog formation mayoccur while an aircraft is ascending or descending. Fog may also beformed at other points in flight when conditions within the cargo bay,or other area, cause humidity to increase to the point ofsuper-saturation. For example, cargo may emit moisture in anon-ventilated or inadequately-ventilated bay, or portion thereof.

An embodiment of the system described herein may utilize fog detectionand discrimination techniques to reduce the number of false alarmscaused by fog being incorrectly identified as smoke. Set forth infollowing paragraphs are some techniques that may be used in anembodiment in connection with fog detection and discrimination.

It should be noted that as described herein, the term “energy” is usedinterchangeably with “intensity”. Thus, for example, frame intensity isa measure of the frame brightness or visible light energy.

Referring now to FIG. 36, shown is an example of an embodiment of aportion of a lighting and camera arrangement that may be used inconnection with differentiating between fire conditions and non-fireconditions (e.g., differentiating between smoke and fog) and/ordetecting fire conditions. In this example, the arrangement 2500 may beused in connection with a cargo bay of an aircraft. It will beappreciated that the arrangement 2500, and other arrangements, as wellas various lighting scenarios described hereinafter and possibly otherlighting scenarios, may be useful for detecting fire, smoke, and otherappropriate conditions (including, without limitation, non-fireconditions) using the functionality described herein. Additionally, thearrangements, scenarios and techniques described herein may be used todistinguish between fire and non-fire conditions, such as,distinguishing fog from fire attributes or conditions (e.g.,distinguishing fog from smoke).

In FIG. 36, the example arrangement 2500 includes one or more overheadlights 2502 a through 2502 n, two cameras 2504 a and 2504 b, and cargo2506 that may be included in cargo bay area of the aircraft beingmonitored. The cameras 2504 a and 2504 b may be used in connection witha video detection system for detecting smoke and/or fire as describedelsewhere herein. The cameras 2504 a and 2504 b may be mounted in anyone or more of a variety of different positions and locations. In theembodiment 2500, the cameras 2504 a and 2504 b are shown mounted at adownward angle as may be the case, for example, when the cameras aremounted on cargo bay sidewalls, or other supporting structures, orsuspended from a ceiling. It is preferable that the cameras areinstalled in such a way that all or most of the cargo bay is within thefield of view of at least one camera. If possible, the mounting shouldbe also designed to maximize the portion of the bay that is within thefield of view of two or more cameras. It should be noted that theparticular components included in 2500 may be a portion of thosecomponents included in the system 100 of FIG. 1.

An area such as the cargo bay area may be illuminated with one or morelight sources. At least a portion of the one or more light sources maybe selected in accordance with the type of lighting to which the one ormore cameras included in 2500 respond. In other words, the scene isilluminated with a light source or sources that match, at leastpartially, response characteristics of the particular camera or camerasused. In one embodiment as described elsewhere herein, the cameras 2504a and/or 2504 b may be a CCD or CMOS camera although an embodiment mayinclude any one or more different types of cameras.

The camera 2504 a includes a light source 2508 a and a lens 2510 a. Thecamera 2504 b includes a light source 2508 b and a lens 2510 b. In otherembodiments, one or more of the cameras 2504 a, 2504 b, do not include acorresponding light source like the light sources 2508 a, 2508 b. Itshould be noted that the cameras 2504 a, 2504 b and/or the lenses 2510a, 2510 b may include any one or more other components includingfilters, Digital Signal Processor (DSP) and the like. However, thissimplistic view is shown in connection with 2500 for the sake of clarityand should not be construed as a limitation of the number or type ofcomponents that may be included in any particular camera and/or lens. Itshould be noted that the camera 2504 b may include the same or differentcomponents of the camera 2504 a and that the lens 2510 a may include thesame or different components of the lens 2510 b.

As described elsewhere herein, the particular light source of the cameramay be selected in accordance with the response characteristics of theone or more cameras used in an arrangement. For example, a CCD or CMOScamera may use any type of visible lighting as the source. If a cameraincludes options, such as a special type of optical filter, the lightsource may be selected in accordance with these options. For example, ifa filter blocks visible light allowing only near infrared light to passtherethrough, the light source may include near infrared components.Accordingly, an embodiment may include as a suitable light source a nearinfrared LED rather than, for example, a fluorescent lamp. The lightsource of the camera may be co-located with the camera providingillumination, for example, from behind the lens of the camera. This isshown in connection with camera 2504 a with light source 2508 a locatedbehind the lens 2510 a of the camera 2504 a. However, it should be notedthat the light source associated with a particular camera may be locatedin other or different locations in accordance with different lightingschemes. A camera may also rely on one or more light sources located,for example, on adjacent side walls, ceilings of the bay, and the like.

In addition to the light source associated with, and in the exampleco-located with, each camera, the arrangement 2500 includes one or morelight sources 2502 a through 2502 n located on the ceiling of a cargobay area. It should be noted that although the embodiment 2500 includescamera light sources 2508 a and 2508 b shown co-located with thecameras, respectively, 2504 a and 2504 b, behind the lenses, andadditional light sources 2502 a-2502 n in the ceiling of the cargo bayarea, light sources may be included in other locations other than asdescribed herein in connection with the particular lighting scenedesired. The particular light source(s) and location as well as theparticular cameras may vary in connection with the different views beingobtained.

In connection with one embodiment of smoke and/or fire detectionsystems, different light sources may be continually switched on and/oroff in order to obtain different lighting views of a particular scenesuch as the cargo bay area. In connection with the arrangement 2500,camera light sources 2508 a and 2508 b as well as overhead lights 2502 athrough 2502 n may be switched on and off via a controller usinghardware and/or software. Although not shown in FIG. 36, a control unit,such as the CVCU 152 of FIG. 1, may be used in connection withcontrolling the lighting as well as the cameras. This is describedelsewhere herein in more detail, for example, in connection with FIG. 1.

In one embodiment, four different lighting views may be used inconnection with viewing a particular scene such as the cargo bay area. Alighting view may be defined in accordance with a particular set oflight sources being on or off. The first view may be defined by having acamera on gathering one or more video frames while its own light sourceis off. However, one or more alternate light sources may be on, such asthat of an opposing camera. In accordance with the first lighting view,camera 2504 a may have its own light source 2508 a off while the camera2504 a is enabled for gathering video data. At the same time, anotheropposing camera, such as 2504 b, may have an associated light source onproviding light for camera 2504 a. In other words, the light source 2508b of camera 2504 b may be used to provide lighting in connection withthe video frames taken by camera 2504 a. This foregoing may be used inconnection with defining a first lighting view in which a camera has alight source provided from an alternate camera. Note that the anotherlighting source or sources located on the opposing wall within the fieldof view of camera 2504 a might be used in addition to or instead of thelight source of camera 2504 b. The resulting view will be referred to as“opposite view”, “diagonal view” or “far view” where the camera lightingis provided by the opposite camera or by an alternative opposite lightsource or sources.

An embodiment may also define a second lighting view in which all lightsources are off except for the overhead lights 2502 a through 2502 n.Referring to 2500, in connection with the second lighting view, lights2502 a through 2502 n are switched on and the camera light sources 2508a and 2508 b are switched off while one or more cameras 2504 a and/or2504 b are enabled to gather video frames. This view will be referred toas “overhead view”. A third lighting view may be defined within anembodiment in which all controlled lights are off with zero illuminationas may be used, for example, in connection with hot spot or flamedetection. This view will be referred to as “thermal view” or “darkview”. It should be noted that this third lighting view may not be usedin connection with aerosol detection/distinction relating to smoke, fog,and dust since aerosol particles are typically not “hot” enough to bespotted by the camera in the dark.

In connection with a fourth lighting view, cameras may be paired, suchas 2504 a and 2504 b, such that each camera of the pair is alternatelyenabled for scene lighting. When a first camera of the pair is enabledto access video information, the first camera's light source is also onwhile the second camera of the pair has its light source off and doesnot access video information. This view will be referred to as the“pilot view” or “near view” where each camera provides its ownillumination (from behind). This is in contrast to the first lightingview in which the first camera of the pair accesses video informationwhen the other camera of the pair has its light source on. For the pairof cameras 2504 a and 2504 b in connection with the fourth lightingview, if the light source 2508 a is enabled, camera 2504 a accessesvideo information while camera 2504 b has its light source off.Similarly, if light source 2508 b is enabled, camera 2504 b accessesvideo information while camera 2504 a has its light source off. It isworth noting that in some embodiments, each and every camera mayalways—independently from the light sources—be gathering videoinformation but that such information is only used when appropriate. Inanother embodiment, cameras may simultaneously gather and accessinformation only when instructed by the control unit or the camera's ownDSP. For example, when camera 2504 a has its light source switched onand camera 2504 b has its light source switched off, then both camerasmay be gathering, accessing and processing video informationsimultaneously—the view seen by camera 2504 a is its pilot view (nearview), while the view seen by camera 2504 b is its opposite view (farview).

An embodiment may define any one or more different views other than asdescribed herein. The four lighting views described herein that may beincluded in an embodiment should not be construed as a limitation. Forexample, the fourth lighting scenario where the camera view isilluminated by its own lighting source (i.e. pilot/near view) may bepreferred for fog/smoke discrimination. This view may provide betterlighting coverage both in space and depth so that fog-related features,such as image spatial distribution and gradient intensity, are betteridentified for discrimination from those related to smoke or otheraerosols.

The controller which may be used in controlling the operation of thelights and/or cameras described in the example 2500 may operate in oneor more modes. Various operating modes may be selected via a predefinedconfiguration file or based on the observed scene circumstances. Oneembodiment includes an automatic mode which may be characterized ascycling through the one or more lighting views described herein in anautomated fashion. This first or automatic mode may provide forgathering a predetermined number of video frames in each of the views ina cyclic fashion. An embodiment may also include a second mode ofoperation of the lighting and/or cameras which may be characterized as aselectively programmed mode in which the control unit may be programmedto vary the amount of time and/or frames gathered for each of thelighting views in a particular system. The selectively programmed modemay be used, for example, in connection with programming the controlunit using hardware and/or software to gather additional video framesand information in connection with one or more particular points ofview. As an example, one particular camera may be at a preferred commonlocation or view variation. Accordingly, the one particular camera maylocated within a cargo area to provide a better view of the cargo baythan other cameras and thus may be accessed more frequently than one ormore other cameras. Additionally, the selectively programmed mode may beused in connection with gathering data about a particular locationdepending upon the detection of other conditions. For example, ifcertain conditions within a portion of the cargo bay area are detected,in response, it may be desirable to gather more video information aboutthe portion.

In one embodiment, the first or automatic mode may be the normal mode ofoperation in which consecutive video frames are obtained correspondingto each of the different lighting views in a cyclic fashion. A controlunit may be used in connection with continually switching on and offdifferent light sources to obtain different lighting views of theparticular scene being observed. Consecutive video frames in this modeof operation may correspond to each of the different lighting views.Alternatively, an embodiment may take a plurality of consecutive videoframes for one particular lighting view such that a set of consecutivevideo frames may correspond to a single lighting view before switchingto a different lighting view.

In connection with techniques described herein, it is assumed that thevideo frames being analyzed correspond to the same lighting conditionsor views. In other words, a subsequence of frames may be extracted fromthe overall video feed if an embodiment is operating in the first orautomatic mode. Additionally, as also described herein, fogdiscrimination may require that some source of light be present.

However, ambient uncontrolled light may be sufficient in some instances.Frames taken with no illumination such as in connection with hot spot orflame detection may not be useful in connection with fog detection atall. As described above, the third lighting view in which all lightsources are off, such as in connection with dark or hot spot detection,may not be used in connection with fog discrimination techniquesdescribed herein. Accordingly, an embodiment that operates in accordancewith the first or automatic mode does not analyze the one or more framesproduced using the foregoing third lighting view using the fogdiscrimination techniques described herein.

It should be noted that the techniques that are described herein may beexecuted using two or more different subsequences of frames eachcorresponding to different lighting conditions. For example, thetechniques described herein may be used in analyzing video framesassociated with the first lighting view described above (i.e.opposite/far view). Similar (perhaps adapted or related) techniques maybe used in connection with analyzing a second subsequence of framesproduced in accordance with the second lighting view described above(i.e. overhead view). Yet a third subsequence of frames may be analyzedin accordance with the similar (perhaps adapted or related) techniquesin which the frames are produced using the fourth lighting viewdescribed above (i.e. pilot/near view). The embodiment may combine thediagnosis or conclusion reached using each of the different subsequencesfor the first lighting view, the second lighting view, and the fourthlighting view producing a combined final result by using data fusiontechniques, for example, such as fuzzy logic and/or Bayesian decisionmaking. The data fusion method may involve appropriate weighting to beapplied to information from different views according to theirusefulness for the overall detection task. For example, more emphasismay be put on the fourth lighting view (i.e. pilot/near view) where thefog movements and spatial distribution are best captured.

Referring now to FIG. 37, shown is an example of an embodiment 2600 ofdata flow and components therebetween in connection with performing fogdetection and discrimination. FIG. 37 summarizes the data flow justdescribed in connection with an embodiment obtaining video frames usingcameras and lighting operating in accordance with the automatic mode asdescribed herein. At 2602, a video frame sequence is obtained inconnection with plurality of lighting views in which lighting andcameras are operated in automatic mode as described elsewhere herein.These one or more video frames may be separated in accordance with eachparticular lighting view such that the frames 2604 a obtained with thefirst lighting view are grouped together. Similarly, all of the frames2604 b obtained with the second lighting view are also grouped together,and those frames 2604 c obtained with the fourth lighting view are alsogrouped together. Each of the different subsequences of framesassociated with a particular lighting view are processed using the fogdetection techniques described elsewhere herein that may operate in thefog detectors such as 2608 a through 2608 c. Each of the individual fogdetectors 2608 a-2608 c outputs results in accordance with theparticular subsequence of frames produced using a particular lightingview. The results of the fog detector processing the first set of framesobtained with the first lighting view are shown as results 2610 a.Similarly, each of the subsequences of frames analyzed in accordancewith each of the other lighting views also output results as shown in2600. When each of the different fog detectors outputs individualresults, these individual results may be combined using a data fusionscheme embodied within 2620. The data fusion scheme embodied within thecomponent 2620 may produce a final result 2622 as a result of fusing theplurality of individual results. Each of the individual results isobtained based on a particular lighting view.

It should be noted that the techniques used in each of the fog detectors2608 a through 2608 c may be the same or different fog detectiontechniques. The fog detectors 2608 a through 2608 c may utilize the fogdetection techniques described herein or other types of techniques.Additionally, it should be noted that although the illustration 2600includes only three types of lighting views and accordingly threesubsequences of frames, any number of subsequences of frames may beanalyzed and should not be construed as a limitation.

Techniques used in connection with fog detection, such as may be used ineach of the fog detectors of FIG. 37, may analyze extracted featuresfrom the video frames to determine whether one or more of the extractedfeatures indicate the presence of fog. These one or more extractedfeatures may be based on the visual characteristics of fog. What willnow be described are such characteristics that may be used in fogdetection and discrimination techniques. It should be noted that thecharacteristics described herein are based on experimental video andnon-video data collected.

It should also be noted that the characteristics and features set forthherein may be used in connection with an entire image or a portion of animage being analyzed.

A first visual characteristic of images in which fog is observed is thatthere may be a change in overall intensity of the image, or portion(s)thereof of interest. Fog droplets lead to diffusion of light such thatlight is reflected in different directions. As a result, more light getsreflected back towards the camera causing the overall image intensity ofthe area of interest to increase. In other words, a lighting sceneappears brighter.

A second visual characteristic of images in which fog is observed isthat there may be a decrease in image contrast. Less light reaches theobjects that are obscured by fog. Consequently, a smaller portion oflight is reflected from those same objects. As a result, objects thatnormally appear very bright in the absence of fog now show a decrease inbrightness in the presence of fog. Additionally, objects that normallyappear very dark in the absence of fog appear lighter in the presence offog since a portion of the light is reflected by fog droplets instead ofbeing absorbed by those dark objects. As a result, image contrastdecreases such that differences in intensity are smaller.

A third visual characteristic of images in which fog is observed is thatthere may be a decrease in image crispness or sharpness. Sharpness ofdetail decreases in foggy images as edges appear blurred.

A fourth visual characteristic of images in which fog is observed isthat the changes in the foregoing first through third visualcharacteristics approximate a uniform change across an image or portionof image that is of interest. In other words, the intensity, contrastand sharpness changes are approximately uniform across an entire imageor region(s) such that, for example, no localized fog cloud is visible.With fog, intensity increases throughout the image, or region ofinterest, at a relatively uniform rate. Similarly, edges get slightlyblurred in all objects of the image. This is in distinct contrast tosmoke which moves from its source into the camera field of view. Imagechanges resulting from smoke may be observed within a portion of an areaunder consideration, while fog causes the same type of change in a moreglobal fashion throughout the entire area or region of interest. Notethat it is possible for fog effects to be present only in a portion ofthe observed view, and therefore the image change may be not completelyuniform. However, in a typical situation, image changes due to fog aremore uniformly distributed across the image, or other region of interestbeing analyzed, than image changes due to smoke.

A fifth visual characteristic of images in which fog is observed is thatthere may be a rapid initial change in image intensity, contrast, and/orsharpness globally within an image and/or area being monitored. Fogdroplets may form simultaneously or within a short time intervaleverywhere within the entire cargo bay or a large portion thereof. Theresulting changes in image intensity, contrast or sharpness occurquickly, such as, for example, within single seconds, such that thechanges in image intensity, contrast, and/or sharpness take place veryrapidly. In contrast, smoke typically would fill the cargo bay from aninitially localized source, and the observed image changes wouldincrease gradually through a longer time.

A sixth visual characteristic of images in which fog is observed is thatthere may be an immediate but slow dispersal of the fog once formed suchthat intensity, contrast and/or sharpness characteristics may graduallyreturn to pre-fog formation levels. In other words, once fog is formed,a scene may, within a few minutes, return to its previous non-fog state.This process may also be characterized as approximately uniform acrossthe whole image or portion thereof of interest. The recovery process maybe characterized as approximately linear over time. It should be notedthat the sixth characteristic may not always be present with fog. Thesixth visual characteristic may be used in an embodiment, for example,as a confirming or secondary condition when performing fog detection. Ifan embodiment uses one or more other characteristics which indicate thepresence of fog, features related to the sixth visual characteristic maybe used in confirming this positive result of the other characteristics.An embodiment may also use the sixth characteristic in fog detection anddetermination when a change in pressure is determined. If no change inpressure has been determined, an embodiment may optionally decide not touse image features based on the sixth visual characteristic in making adecision regarding fog detection.

Based on the foregoing visual characteristics described above, what willnow be described are some numerical features that may be extracted froman image and how they may be used in automatic fog detection. It shouldbe noted that the numerical features described below may becharacterized as a partial list of such features and an embodiment mayalso utilize other extracted features in accordance with the visualcharacteristics described herein. It should also be noted that each ofthe extracted features described herein may be performed using theentire image, or one or more regions of interests.

A first extracted feature that may be used in an embodiment is imageintensity. An embodiment may use average intensity of an image as anindication of overall brightness of an image, or portion thereof ofinterest. The average intensity m of an image at a time “t” may becalculated as:

$\begin{matrix}{{m(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}\;{{Xj}(t)}}}} & {{EQUATION}\mspace{14mu}{F1}}\end{matrix}$where N represents the total number of pixels in the image, or portionthereof, at a time “t” and X_(j)(t) represents the intensity value atpixel location “j” and time “t”. The foregoing average intensity may bedetermined for a plurality of images over a period of time to detect atrend in image brightness. The summation in the above formula may alsobe performed only over pixels from a small predetermined region of theimage instead of over the entire image, particularly if only portions ofthe image are effectively illuminated, such as in opposite or overheadview. If the overall brightness of the region(s) of interest increasesover a predetermined time period above a predetermined threshold, thenthis may be an affirmative indicator of the presence of fog.

An embodiment may also determine the intensity of a change image ordifference image, D_(j)(t,δ)=X_(j)(t)−X_(j)(t−δ), which is a differencebetween images, or portions thereof, taken at time instances t and t−δ.The intensity of image change may be calculated as:

$\begin{matrix}{{m_{D}\left( {t,\delta} \right)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}\;{{Dj}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F2}}\end{matrix}$It should be noted that the intensity of an original image at a time “t”is a positive number, while its change may be positive or negativerelative to the initial intensity. Therefore indicator m(t) assumes onlypositive values, while m_(D)(t,δ) may be positive or negative. Positivechanges in m(t) or positive values of m_(D)(t,δ) indicate creation offog, while negative changes in m(t) or negative values of m_(D)(t,δ)indicate its dispersion.

It should also be noted that the time interval δ between the twocompared frames may be fixed throughout the operation of the system. Anembodiment may also adjust the time interval in accordance withparticular conditions and parameters in an embodiment. In other words,the reference frame X(t−δ) need not be always delayed with respect tothe current frame X(t) by the same time interval. For example, in oneinstance, the reference frame X(t−δ) may be fixed representing aninitial view of a cargo bay X(0), such as, for example, one that may beinterpreted as the background scene. In this case δ grows linearly sothat δ is always the current time t since the start of the flight fromthe time of the initial view. The difference image D(t,δ) in this caserepresents the cumulative change of view since the beginning of theflight.

An embodiment may also reset the reference image X(t−δ) periodically toaccommodate possible slow changes of background. An embodiment may alsohave the reference frame e X(t−δ) set to the frame immediately precedingthe current one such that δ=1. In this instance, the difference imageD(t,δ) represents the instantaneous rate of change of the view.

An embodiment may use one or both of the foregoing average intensity andchange in image intensity with respect to a reference image, or portionthereof, as described above. The particular one used in an embodimentmay vary in accordance with the conditions existing in a system. Forexample, in a system in which there is a lot of vibration, it may bedesirable to use the average intensity of an image as determined byEQUATION F1 and observed over a time period.

It should be noted that an embodiment may use a numerical valuedetermined from EQUATION F2 as an indicator that fog is present inaccordance with predetermined threshold values. If the calculated valueis a positive value greater than the threshold, then this calculatedvalue indicates affirmatively that fog has been detected. The particularthresholds used in connection with this value and others describedherein may be empirically determined. The particular thresholds used mayalso vary in accordance with the particular conditions of eachembodiment such as, for example, the illumination, camera settings, andthe like.

In connection with the various features described herein, a singleimage, or portion thereof, may be used. Additionally, the featuresdescribed herein may also be determined using the change or differenceimage.

In connection with EQUATION F1 above, an embodiment may also determineand use as an extracted numerical feature the standard deviation of theimage intensity as:

$\begin{matrix}{{s(t)} = \sqrt{\frac{1}{N}{\sum\limits_{j = 1}^{N}\;\left( {{{Xj}(t)} - {m(t)}} \right)^{2}}}} & {{EQUATION}\mspace{14mu}{F3}}\end{matrix}$

Large values of s(t) indicate high variability of intensity and arerelated to high contrast. Low values of s(t) indicate lower contrast. Inconnection with fog detection, creation of fog occurs when there is arapid decrease of s(t), while an increase in s(t) may be used anindicator of fog dispersal. If s(t) is below a predetermined threshold,this may be used an affirmative indicator that fog is present. As withmean intensity numerical feature and all other features describedherein, standard deviation of intensity may be calculated over theentire image or over a predetermined region which is a portion of theentire image.

An embodiment may also determine the average absolute difference fromthe mean. In some instances, standard deviation may be toocomputationally expensive since it requires each intensity difference tobe squared, or that each intensity be squared. An embodiment may usepre-calculated values stored in a table and at runtime, look up valuesin the table rather than perform the calculation. In other words, alookup table containing numerical values of the standard deviationcorresponding to a few (i.e. not all) pixel combinations may be computedoffline and stored in the computer memory. Given an actual frame with acertain pixel combination (i.e. intensity map) at time t, the framestandard deviation may be approximated by the value corresponding to thepixel combination in the lookup table that is closest to the actualframe at time t. However, in some embodiments, the computational andresource cost may still be deemed to be high even with a table look upfeature. Another possibility is to store, as a look-up table, differentvalues of the square (Xj(t)−m(t))² for different pixel intensity values,and thus avoid squaring operation for each pixel. An embodiment mayalternatively determine a mean absolute difference from the mean as:

$\begin{matrix}{{d(t)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{{{Xj}(t)} - {m(t)}}}}}} & {{EQUATION}\mspace{14mu}{F4}}\end{matrix}$

Similarly as in a standard deviation case using EQUATION F3, creation offog is related to rapid drop of d(t), while its rise indicates fogdispersal.

An embodiment may also determine the absolute value of the averageintensity change as:

$\begin{matrix}{{d_{a}\left( {t,\delta} \right)} = {{\frac{1}{N}{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {{Xj}\left( {t - \delta} \right)}} \right)}}}} & {{EQUATION}\mspace{14mu}{F5}}\end{matrix}$

This feature is useful in eliminating random fluctuations around themean since pixel differentials with opposite signs cancel each other.Random fluctuations may be caused, for example, by a source other thanfog, such as background and camera noises.

It should be noted that an embodiment may use the features of EQUATIONSF4 and F5 as an alternative to, or in addition to, other featuresdescribed herein.

An embodiment may also use features in connection with comparing animage, or portion thereof, to a reference image. Two such features thatmay be included in an embodiment are described in connection withEQUATION F6 and EQUATION F7 below.

An embodiment may determine a correlation measurement based on thet-Student distribution as:

$\begin{matrix}{{d_{s}\left( {t,\delta} \right)} = {\frac{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)}{\sqrt{\sum\limits_{j = 1}^{N}\left( {{{Xj}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}}.}} & {{EQUATION}\mspace{14mu}{F6}}\end{matrix}$This feature may be used in tracking the statistical evolution of thevideo stream as compared to the reference image at time t−δ. The valuesdetermined using EQUATION F6 are large in the case of uniformlydistributed pressure-related fog since this feature emphasizes uniformdispersion around the mean intensity. If values determined usingEQUATION F6 are greater than a predetermined threshold, this may be usedas an affirmative indicator of fog.

An embodiment may also determine a correlation similar to that describedby EQUATION F6 based on the likelihood ratio distribution and calculatedas:

$\begin{matrix}{{{d_{1}(t)} = {1 - {\min\limits_{j = {{all}\mspace{14mu}{pixels}}}\left( {{LR}_{j},\frac{1}{{LR}_{j}}} \right)}}}{where}{{LR}_{j} = \frac{\begin{bmatrix}{\frac{\left( {s(t)} \right)^{2} + \left( {s\left( {t - \delta} \right)} \right)^{2}}{2} +} \\\frac{\left( {{X_{j}(t)} - {m\left( {t - \delta} \right)}} \right)^{2}}{2}\end{bmatrix}^{2}}{\left( {s(t)} \right)^{2}\left( {s\left( {t - \delta} \right)} \right)^{2}}}} & {{EQUATION}\mspace{14mu}{F7}}\end{matrix}$

An embodiment may determine an intensity range. Maximum (Xmax) andminimum (Xmin) intensity may provide an indication of reduced imagecontrast. If

$\begin{matrix}{{{\chi_{\max}(t)} = {\max\limits_{j = {{all}\mspace{14mu}{pixels}}}{X_{j}(t)}}},{{\chi_{\min}(t)} = {\min\limits_{j = {{all}\mspace{14mu}{pixels}}}{X_{j}(t)}}}} & {{EQUATION}\mspace{14mu}{F8}}\end{matrix}$then, intensity range may be expressed as:r(t)=X_(max() t)−X_(min() t)  EQUATION F9Creation of fog may be indicated by a rapid drop of r(t), while anincrease in r(t) may indicate fog dispersal. If r(t) decreases below athreshold amount, this may be used as an affirmative indicator that fogis present.

An embodiment may also extract frequency-based features to identify anddiscriminate foggy scenes. The main premise is to determine motionestimates via a Fourier transform formulation of an image, or portionthereof. In contrast to smoke which typically moves from its source(e.g. hotspot) in some direction with a certain propagation velocity,fog tends to diffuse everywhere in all directions without a regularpropagation velocity. To capture this discrimination feature considerthe following formulation of the problem.

1. Suppose a stream of digital frames of size M by N is captured at acertain constant rate of “Δt” frames per second.

2. Further, suppose that a reference frame captures all lightreflections due to static structures in side the bay—such as bay walls,cargo, containers, and fixed light sources. The reference frame will besubsequently subtracted from any subsequent frame of the video stream.Any change in the stream of images is supposedly due to fog or otheraerosol, such as smoke.

3. To simplify the formulation, suppose that a unique and brightone-pixel region is moving in the X-direction with a constant velocity.In other words, everything is static (i.e. with value “0”) except for asingle pixel (i.e. with value “1”) at location (x₀, y₀) that is movingwith a constant speed in the X-direction.

4. Project the image plane into the X-axis; that is the pixel values aresummed across the columns (from 0 to M−1). This summation generates a1-D vector of length M with all its entries equal to zero except for theentry at the order x₀; that is:

V_(M) = [0, 0, 0, …  , 0, 1, 0, …  , 0]${{order}\text{:}\mspace{14mu}\overset{\uparrow}{0}},\;\overset{\uparrow}{1},\ldots\mspace{14mu},\left( \overset{\uparrow}{i_{0}} \right),\ldots\mspace{14mu},{\left( \overset{\uparrow}{M - 1} \right).}$

5. Multiply components of the vector by the complex value: e^([j2πa) ¹^(xΔT]), x=0, 1, 2 . . . (M−1) where a₁ denotes a positive integer (i.e.a frequency).

6. Summation of the vector components yields the complex value ofe^([j2πa) ¹ ^(x) ⁰ ^(ΔT]) in terms of polar coordinates.

7. Suppose that in the second frame (i.e. t=1), the one pixel object hasmoved in parallel direction to the X-axis with a unit value; that is tocoordinates (X₀+1, y₀).

8. Repeating the projection procedure of step 4 yields a complex valueof e^([j2πa) ¹ ^((x) ⁰ ^(+1)ΔT]) If the object continues to move at thepace of one pixel location per frame, at any time integer time t_(k)then the result of the projection procedure is e^([j2πa) ¹ ^((x) ⁰ ^(+t)^(k) ^()ΔT]) that has a real part (i.e. physical) value of:cos [2πa ₁(x ₀ +t _(k))ΔT]; t _(k)=0, 1, 2, . . . , K−1.In other words, the foregoing represents a harmonic with frequency “a₁”where a₁ is actually an arbitrary positive integer picked to facilitatethe projection process. If the object is moving v₁ pixels betweenframes, then the sinusoidal frequency may be represented as a₁v₁.

9. Applying the Discrete Fourier Transform (DFT) to the sinusoidalresults in a peak at the frequency a₁v₁. Another peak, because of DFTsymmetry, is detected at frequency (K−a₁v₁) and should be ignored.Recall K is the number of frames of the video stream. Dividing the peakvalue (i.e. a₁v₁) by the predefined integer a₁ yields the objectvelocity in the x-direction (i.e. v₁).

Applying a similar process to the y-axis yields a velocity component(i.e. v₂) in the y-direction. The foregoing is one technique known inthe art for capturing frequency based features to determine motionestimates as described, for example, in Rafael C. Gonzalez, Richard E.Woods, “Digital Image Processing,” Prentice Hall, New Jersey 2002, andMurat Tekalp “Digital Video Processing,” Prentice Hall, New Jersey 1995.Other techniques may be used in connection with extracting this andother frequency-based features for identifying and discriminating foggyscenes.

Based on the above process, the following projection functions may bedefined as:

${{{g_{x}\left( {t,a_{1}} \right)} = {\sum\limits_{x = 0}^{M - 1}{\sum\limits_{y = 0}^{N - 1}{{p\left( {x,{y;t}} \right)}{\mathbb{e}}^{\lbrack{j\; 2\;\pi\; a_{1}x\;\Delta\; T}\rbrack}}}}};{t = 0}},1,\ldots\mspace{14mu},\left( {K - 1} \right)$${{{g_{y}\left( {t,a_{2}} \right)} = {\sum\limits_{x = 0}^{M - 1}{\sum\limits_{y = 0}^{N - 1}{{p\left( {x,{y;t}} \right)}{\mathbb{e}}^{\lbrack{j\; 2\;\pi\; a_{2}y\;\Delta\; T}\rbrack}}}}};{t = 0}},1,\ldots\mspace{14mu},\left( {K - 1} \right)$Applying DFT to these functions yields 2 frequency responses as follows:

${{{G_{x}\left( {u_{1},a_{1}} \right)} = {\frac{1}{K}{\sum\limits_{t = 0}^{K - 1}{{g_{x}\left( {t,a_{1}} \right)}{\mathbb{e}}^{\lbrack\frac{{- j}\; 2\;\pi\; u_{1}t}{K}\rbrack}}}}};{u_{1} = 0}},1,\ldots\mspace{14mu},\left( {K - 1} \right)$${{{G_{y}\left( {u_{2},a_{2}} \right)} = {\frac{1}{K}{\sum\limits_{t = 0}^{K - 1}{{g_{y}\left( {t,a_{2}} \right)}{\mathbb{e}}^{\lbrack\frac{{- j}\; 2\pi\; u_{2}t}{K}\rbrack}}}}};{u_{2} = 0}},1,\ldots\mspace{14mu},\left( {K - 1} \right)$As mentioned earlier, the Frequency-based process result in two peaksrelating frequency to motion velocity as follows:

$\quad\left\{ \begin{matrix}{u_{1} = {a_{1}v_{1}}} \\{u_{2} = {a_{2}v_{2}}}\end{matrix} \right.$The total motion quantity can be estimated in pixel per frame-time by:Γ=√{square root over ((v ₁)²+(v ₂)²)}{square root over ((v ₁)²+(v ₂)²)}A value of Γ=5 means motion of 5 pixels per K frames. For example, ifΓ=5 and K=30 frames, dT=7 frames per second, and distance between pixelsis translated into physical distance 0.03 m, then the actual objectmotion is:

$\begin{matrix}{\Gamma = {\left( {5\mspace{14mu}{pixels}} \right)\left( {0.03\mspace{14mu} m\text{/}{pixel}} \right){\left( {2\mspace{14mu}\text{frames}} \right)/\left( {30\mspace{14mu}\text{frames}} \right)}}} \\{= {0.01\mspace{14mu} m\text{/}s}}\end{matrix}$Recall that this calculation is based on the assumption of 1-pixelobject moving at constant velocity. In the case of several “objects”,such as edges of aerosol clouds, the motion quantity may be computedbased on the detection of several peaks (i.e. moving pixels) and notconstant (i.e. time-dependant).

The trend of the foregoing frequency-based motion estimator Γ with fogmay be characterized as small and smoothly varying with time in contrastto the smoke case that may be characterized as exhibiting high andirregular values of Γ.

An embodiment may extract a gradient feature since sharpness of image,or portion thereof, may be characterized by the intensity gradient of animage. The x and y gradient components at pixel i,j may be definedand/or approximated in any one or more a variety of different ways, forexample, as described in Rafael C. Gonzalez, Richard E. Woods, “DigitalImage Processing,” Prentice Hall, New Jersey 2002, and

Murat Tekalp “Digital Video Processing,” Prentice Hall, New Jersey 1995.For example, a gradient may be defined in terms of left, right, ordouble-sided differences, as set forth below, respectively, in EQUATIONSF10, F11, and F12:

$\begin{matrix}{{{G_{i,j}^{x}(t)} = {{X_{i,j}(t)} - {X_{{i - 1},j}(t)}}}{{G_{i,j}^{y}(t)} = {{X_{i,j}(t)} - {X_{{i - j},1}(t)}}}} & {{EQUATION}\mspace{14mu}{F10}} \\{{{G_{i,j}^{x}(t)} = {{X_{{i + 1},j}(t)} - {X_{i,j}(t)}}}{{G_{i,j}^{y}(t)} = {{X_{i,{j + 1}}(t)} - {X_{i,j}(t)}}}} & {{EQUATION}\mspace{14mu}{F11}} \\{{{G_{i,j}^{x}(t)} = \frac{{X_{{i + 1},j}(t)} - {X_{{i - 1},j}(t)}}{2}}{{G_{i,j}^{y}(t)} = \frac{{X_{i,{j + 1}}(t)} - {X_{i,{j - 1}}(t)}}{2}}} & {{EQUATION}\mspace{14mu}{F12}}\end{matrix}$

Although the foregoing defines a gradient in terms if differencesbetween pixel locations with time as a constant, such as within a sameimage, a gradient may also be determined by examining pixel values ofimages taken at different points in time. As described elsewhere herein,the gradient, as well as other features set forth herein, may bedetermined on a single image or the difference image described elsewhereherein.

Note that other expressions may be used to approximate gradient values.If more computational resources are available, then a standardapproximation such as Prewitt or Sobel formula for numerical gradientmay be used. Any of variety of known gradient approximation methods maybe used.

It should be noted that that a calculation of gradient values may not bepossible for all pixels. This may vary in accordance with the particulartechnique and formula used to determine gradients. For example, borderpixels may be excluded when determining gradient values depending on theparticular technique and formula used. In connection with equationsdescribed herein, such as in EQUATION F13 below, summations areperformed using the appropriate non-border pixels, and the number ofpixels N is understood accordingly as excluding any border pixelsneeded.

An embodiment may use large gradient values to give a measure of imagesharpness such that sharp edges correspond to large values of agradient. An embodiment may define a mean absolute gradient value as:

$\begin{matrix}{{{g_{a}^{x}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{{G_{i,j}^{x}(t)}}}}},{{g_{a}^{y}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}}}} & {{EQUATION}\mspace{14mu}{F13}}\end{matrix}$Using EQUATION F13, creation of fog may be signified by a rapid drop ing_(a) ^(x)(t) and/or g_(a) ^(y)(t) while, in contrast, an increase ing_(a) ^(x)(t) and/or g_(a) ^(y)(t) may indicate fog dispersal.An embodiment may also define the overall average gradientcharacteristic as:g _(a)(t)=g _(a) ^(x)(t)+g _(a) ^(y)(t)  EQUATION F14and use EQUATION F14 as an alternative to, or in addition to, usingg_(a) ^(x)(t) or g_(a) ^(y)(t) separately, for example, as set forth inEQUATION F13.

An embodiment may also include another gradient measure is based on theaverage gradient norm. Let the gradient norm at pixel i,j be defined as:G _(i,j) ^(n)(t)=√{square root over (G _(i,j) ^(x)(t)² G _(i,j)^(y)(t)²)}{square root over (G _(i,j) ^(x)(t)² G _(i,j)^(y)(t)²)}  EQUATION F15for all “N” pixels used, and the average gradient norm may be definedas:

$\begin{matrix}{{g_{n}(t)} = {\frac{1}{N}{\sum\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{G_{i,j}^{n}(t)}}}} & {{EQUATION}\mspace{14mu}{F16}}\end{matrix}$

Using the values for the feature of EQUATION F16, creation of fog isrelated to a rapid drop in g_(n)(t), such as below a predeterminedthreshold value. An increase in the values determined using EQUATION F16may indicate fog dispersal. Using a gradient, other possible featuresmay be determined and used in an embodiment. For example, other possiblefeatures included in an embodiment as related to image sharpness may bethe maximum and/or minimum gradient norms defined as:

$\begin{matrix}{{{g_{\max}(t)} = {\max\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{G_{i,j}^{n}(t)}}},{{g_{\min}(t)} = {\min\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{G_{i,j}^{n}(t)}}}} & {{EQUATION}\mspace{14mu}{F17}}\end{matrix}$An embodiment may also utilize the maximum and/or minimum values of itsx and y components defined as:

$\begin{matrix}{{{g_{\max}^{x}(t)} = {\max\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{\overset{\_}{G_{i,j}^{x}(t)}}}},{{g_{\min}^{x}(t)} = {\min\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{{G_{i,j}^{n}(t)}}}},} & {{EQUATION}\mspace{14mu}{F18}} \\{{{g_{\max}^{y}(t)} = {\max\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}},{{g_{\min}^{y}(t)} = {\min\limits_{i,{j = {{all}\mspace{14mu}{pixels}}}}{{G_{i,j}^{y}(t)}}}}} & {{EQUATION}\mspace{14mu}{F19}}\end{matrix}$

If one or more of the above minimums and/or maximums drop below apredetermined threshold, this may indicate the presence and/or creationof fog.

Another feature that may be used in an embodiment relates to the dynamicrange of intensity change. To measure spatial uniformity of imagechanges, an embodiment may determine a standard deviation of intensitychange over some predefined time interval, δ, defined as:

$\begin{matrix}{{s_{d}\left( {t,\delta} \right)} = \sqrt{\frac{1}{N}{\sum\limits_{j = {{all}\mspace{11mu}{pixels}}}\left( {{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}} \right)^{2}}}} & {{EQUATION}\mspace{14mu}{F20}}\end{matrix}$

As related to fog, the initial pixel intensity increase and thesubsequent pixel intensity decrease is distributed evenly across theimage. Therefore the change image D(t,δ) should be uniformly grey withall pixels close to the mean value m_(D)(t,δ) such that the quantitys_(d)(t,δ) of EQUATION F20 is close to zero. Accordingly, an embodimentmay compare feature values determined using EQUATION F20 to one or morethreshold values in order to discriminate between fog and otherconditions such as, for example, other aerosols, smoke, and the likewhich may result in non-uniform intensity changes.

An embodiment may also replace standard deviation with mean absolutedeviation from the mean value of the change or difference image and usethe following:

$\begin{matrix}{{d_{d}(t)} = {\frac{1}{N}{\sum\limits_{j = {{all}\mspace{11mu}{pixels}}}{{{D_{j}\left( {t,\delta} \right)} - {m_{d}\left( {t,\delta} \right)}}}}}} & {{EQUATION}\mspace{14mu}{F21}}\end{matrix}$An embodiment may used the image feature of EQUATION F21 in addition to,or in place of, EQUATION F20. The feature extracted with EQUATION F21may be characterized as similar to that of standard deviation s_(d)(t,δ)of EQUATION F20 above. However, an embodiment using EQUATION F21 may useless computing resources than those associated with EQUATION F20calculations resulting in a reduction in CPU time to determineassociated numerical values.

An embodiment may also measure uniformity of change in an image, orportion thereof, through spatial moments of the change or differenceimage. Let coordinates of the center of mass of the change image D(t,δ)be defined as:

$\begin{matrix}{{{i_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{iD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}}{{j_{c}\left( {t,\delta} \right)} = \frac{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{jD}_{i,j}\left( {t,\delta} \right)}}{\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F22}}\end{matrix}$

If the image change is uniform across the image or region of interest,the coordinates of EQUATION F22 are very close to the geometric centerof the image. If the above coordinates of EQUATION F22 are far away fromthe center of image, this indicates that the intensity change does notappear to be uniform, and accordingly is probably not caused by fog.

An embodiment may also determine one or more higher order moments ofchange image. These may be defined as:

$\begin{matrix}{{M_{2,0}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2}{D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F23}} \\{{M_{0,2}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}{D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F24}}\end{matrix}$A moment of inertia of the change or difference image may be defined as:

$\begin{matrix}{{M_{i}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {\left( {i - {i_{c}\left( {t,\delta} \right)}} \right)^{2} + \left( {j - {j_{c}\left( {t,\delta} \right)}} \right)^{2}} \right){D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F25}}\end{matrix}$

To reduce computational load, an embodiment may use average absolutevalues rather than squares of distances as set forth above, resulting inthe following image features:

$\begin{matrix}{{M_{1,0}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{i - {i_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F26}} \\{{M_{0,1}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{{{j - {j_{c}\left( {t,\delta} \right)}}}{D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F27}} \\{{M_{i}^{a}\left( {t,\delta} \right)} = {\sum\limits_{i,{j = {{all}\mspace{11mu}{pixels}}}}{\left( {{{i - {i_{c}\left( {t,\delta} \right)}}} + {{j - {j_{c}\left( {t,\delta} \right)}}}} \right){D_{i,j}\left( {t,\delta} \right)}}}} & {{EQUATION}\mspace{14mu}{F28}}\end{matrix}$

An embodiment may use the foregoing EQUATIONS 26 through 28 in additionto, or in place of, the features determined using EQUATION 23 through25.

In connection with the foregoing, moments may be used as an indicator ofhow spread around a center is the image. Using the foregoing equations,if the change or difference image is uniform, all these quantities arerelatively large since pixels that are away from the center of mass havethe same values of D_(i,j)(t,δ) as pixels close to the center of mass.If the above quantities are small, the change is concentrated close toits center mass and may be characterized as not uniform or localized.

One of the characteristics of fog described elsewhere herein in moredetail is that fog has a change in pixel intensity which is globaluniformly. Accordingly, larger moment values indicate a more uniformchange and may be used as an indicator of the presence of fog. Incontrast, smaller moment values may indicate non-uniform or localizedchange in pixel image intensity and may be associated with a conditionother than the presence of fog.

In the presence of ideally uniform change, all values D_(i,j)(t, δ) areequal to m_(D)(t, δ) such that ratios of the above moments to m_(D)(t,δ) depend only on the dimension of the image. Thus, based on actualcalculated value of average change intensity m_(D)(t, δ) it is possibleto calculate what the value of a particular spatial moment should be ifthe change were ideally uniform. An embodiment may pre-calculate theseideal values. Then, these pre-calculated values may then be used asreference or threshold values against which the actual moments arecompared. For instance, specific threshold values for foggy scenes canbe estimated using experimental fog video data. If the computed valuesare below a suitably chosen threshold, the change image is not uniformin intensity, and therefore the change may be determined as not beingcaused by fog. An embodiment may also use other thresholds. Anembodiment may also use other higher order moments than as describedherein to characterize uniformity of change.

In connection with any one or more of the foregoing features as relatedto fog, suitable rates of change may be calculated and compared againstpre-determined thresholds. Formation of fog may be characterized asbeing quite rapid, while the recovery process is slow. Rate of changefor any of the above discussed numerical image characteristic may becalculated for example by taking difference between values calculated attwo different time instances. Then, resulting rate of change value maybe compared against suitably chose thresholds. Choice of thresholdvalues to classify changes as rapid or slow as well as choice of theparticular method to estimate the rate of change values may be based onexperimental data and may vary with each embodiment.

An embodiment may also use fusion techniques that combine both one ormore image features and one or more other non-image measurements todetect fog. This may be performed using the entire image or one or moreregions of interest defined therein.

Note that all numerical features described above may also be calculatedfor one or more portions of an image or view rather than for the entireimage or view. That is, only those pixels that belong to a predeterminedregion of an image may be taken into account while performing summation,or finding maximum or minimum value. For example, when analyzing theoverhead view, the effects of fog dispersing light may be seen in arelatively small region below the light source. Accordingly,calculations of one or more numerical image features may be restrictedto this region. Similarly, when analyzing an opposite view, only aregion of the image surrounding the opposite light may be analyzed forappropriate image features. The region of interest may be specified asany one or more different shapes such as, for example, a rectangle, anoval, a suitable polygon, or in any other shape and/or size that may beconvenient. Summations in the above formulae may be performed only overpixels belonging to the region.

It should also be noted that the region of interest being analyzed mayalso be represented as a union of a number of smaller regions, which maybe disjoint or overlapping. For example, if two or more opposite lightsare installed on the opposite wall, then two or more regions may bedefined around the images of those lights. The computation of imagefeatures described herein may be performed using only pixels belongingto those two or more regions. Exact location and shape of those regionsmay vary, for example, with the specific geometric characteristics ofcamera and light source installation. From the point of view of ease ofimplementation and fast code execution, it is preferred that all smallregions are represented as rectangles. However, for more accurate systemperformance, other forms of region description, such as ellipses, may beuseful. Advantages of operating on only portions of one or more imagesrather one or more entire images include much lower computational load,better sensitivity to even small image changes, and higher robustnesswith respect to image noise.

Referring now to FIG. 38, shown is a flowchart 2800 of steps that may beperformed in one embodiment in connection with fog detection asdescribed herein. It should be noted that the flowchart 2800 includes adashed line delineating those steps which may be performed off-lineprior to actually performing the remaining steps. As indicated, thosesteps above the dashed line may be performed off-line prior toperforming the remaining steps below the dashed line in real-time whenacquiring a “live” stream of video to look for fog and other elements.

At some point prior to data acquisition, steps 2802 and 2804 areperformed. At step 2802, test data may be gathered. At step 2804, one ormore thresholds may be determined using the test data in accordance withthe particular one or more fog image features used in analyzing futureimage data for fog detection.

At some point in time later, remaining steps of flowchart 2800 may beperformed in real-time as described above. Image data is collected atstep 2806. The image data may be raw image data, or processed usingtechniques described elsewhere herein, such as filtering, sorting framesin accordance with lighting views, and the like. At step 2808 the nextfog feature is extracted. At step 2810, a determination is made as towhether the fog feature extraction is complete. If not control proceedsto step 2808 until all fog features have been extracted from the imagedata. Control proceeds to step 2812 where a determination is made as towhether the one or more fog features indicate the presence of fog. Ifso, control proceeds to step 2814 where an output or result indicator isset to YES. Otherwise, control proceeds to step 2816 where an output orresult indicator is set to NO. It should be noted that the processing ofstep 2812 may use any one or more techniques as described herein orotherwise known in the art in combining the one or more image features,such as known data fusion techniques.

Referring now to FIG. 39, shown is a flowchart 2820 of steps of anotherembodiment for fog detection. Steps 2802, 2804, 2806, 2808, and 2810 areas described in connection with FIG. 38. At step 2822, the fog featuresmay be combined with other features and/or measurements using any one ormore of a variety of different techniques to produce a final result atstep 2824 as to whether fog has been detected. FIG. 39 processingdiffers from FIG. 38 processing in that other features and/ormeasurements in addition to the image features for fog detection areused in fog detection.

Referring now to FIG. 40, shown is an example of an embodiment 3500 inwhich one or more image features of fog detection may be combined withone or more image and/or non-image features.

FIG. 40 is a representation of the data flow of FIG. 39. The embodiment3500 includes combining logic 3510 having as inputs one or more fogimage features 3502 and one or more other measurements and/or features3504. As an output, the combining logic 3510 produces a final result3506 indicating the presence or absence of fog. The one or more fogfeatures 3502 may be one or more of those image-based fog featuresdescribed herein. The one or more other measurements and/or features3504 may be actual measurements or features derived from measurements.The element 3504 may include measurements and/or features associatedpositively with the presence of fog. Element 3504 may include non-imagemeasurements/features such as, for example, humidity, pressure and/ortemperature measurements. Elements 3504 may include image and/ornon-image measurements and/or features also associated with the presenceof other non-fog conditions, such as smoke and/or fire. Solely usingimage features associated with fog may not be sufficient for effectivediscrimination of fog from other non-fog states depending on theparticular conditions of each implementation. One or more othernon-image measurements, or features based thereon, may be used incombination with the image features described herein in connection withfog detection. Other non-image measurements may include, for example,humidity, pressure and/or temperature measurements. One or more of theseor other measurements may be used in combination with the image featuresdescribed herein to increase the level of certainty for the fogdetection techniques. For example, if relative humidity is notsufficiently high as may be determined in accordance with test data andknowledge, fog cannot be formed.

The choice of appropriate thresholds used in an embodiment may be basedon experimental data, and vary, among other things, with the quality ofavailable humidity, temperature, or pressure sensors. An embodiment mayalso use appropriate filtering and/or smoothing of measurements.

The combining logic 3510 may use any one or more techniques implementedin hardware and/or software. For example, the combining logic 3510producing as a final output 3506 a determination of fog versus non-fogdecisions may be based on rules defined by a domain expert. Anembodiment of 3510 may also use fuzzy logic inference rules derived,using manual and/or automatic techniques known in the art, fromexperimental data. An embodiment of 3510 may also utilize a learningtechnique, such as based on those of a Bayesian decision making using astatistical analysis of the available data. For example, fuzzy rules maybe synthesized such that they implement optimal Bayesian rules. Any oneor more different techniques known in the art may be used in connectionwith the system and methods described herein.

The thresholds used and described herein may be determined in accordancewith experimental data and selected such that all test cases of fire orsmoke are diagnosed correctly as smoke, and so that all fog cases arecorrectly diagnosed as fog. The threshold selected should leave a“safety margin” such that a small variation does not dramatically changethe diagnosis. It should be noted that an embodiment should notincorrectly misdiagnose any fire conditions/cases. In one embodiment,incorrectly determining that a fog condition is smoke is permitted,while confusing smoke for fog resulting in a missed detection of smokeshould not occur.

Use of the image related features of fog described herein may becombined in an embodiment to produce a more robust fog detectiontechnique. The combining logic 3510 may vary in complexity in accordancewith each embodiment. The particular techniques used may vary inaccordance with many factors, for example, such as the amount of testdata available.

Referring now to FIG. 41, shown is a flowchart 2840 of processing stepsof another embodiment that may be used in fog detection. Steps 2802,2804, 2806, 2808, and 2810 are as described in connection with FIG. 38.At step 2842, a determination is made as to whether the one or more fogfeatures indicate the presence of fog. If so, control proceeds to step2844 to set a local fog results indicator to YES.

Otherwise, control proceeds to step 2846 to set a local fog resultsindicator to NO. At step 2848, the local fog results are confirmed bycombining the local results with other measurements and/or features toproduce a final fog result indicator.

Referring now to FIG. 42, shown is an embodiment 3520 representing thedata flow of the processing steps of FIG. 41. The one or more fog imagefeatures 3522 are input to first combining logic 3524 producing as anoutput a first level result indicator 3526. Inputs to the secondcombining logic 3530 are the first level result indicator 3526 and oneor more other features and/or measurements 3528. The second combininglogic outputs a final result 3532. It should be noted that processingsteps of FIG. 41 as shown in FIG. 42 may be used in implementing levelsof logic such as may be used, for example, in confirming the results ofprevious combination logic levels. Although FIG. 42 shows only twolevels, an embodiment may include more than 2 levels. FIG. 41 processingmay be distinguished from the processing steps of FIG. 39 in that thevarious input features are combined in FIG. 41 in levels. In contrast,FIG. 39 provides a technique in which all inputs are described asillustrated in FIG. 40 at single level. Each of the different combininglogics, such as 3524 and 3530, may be use the same or differenttechniques in accordance with the one or more inputs thereto.

It should be noted that the representations of FIGS. 40 and 42 may beused in embodiments of one or more fog detectors as described, forexample, in connection with FIG. 37.

Described herein are techniques that may be used in connection withidentifying features, such as image-related features, that may beassociated with fog. The techniques described herein may be used inconnection with analyzing an image, or portion(s) thereof, to look forglobal, uniform changes, rather than localized, non-uniform changes withrespect to the image area of interest. In connection with one or moreimages, an embodiment using the foregoing techniques for fog detectionmay: determine if there is a simultaneous increase in intensity and adecrease in contrast, look for a decrease in sharpness, analyze spatialuniformity of change, and/or look for rapid formation and/or subsequentslow dispersal of fog. The foregoing also describes using image featuresin fog detection, for example, such as: use of the mean absolutedeviation from the mean to measure dynamic range, use of the gradientnorm or means of absolute gradient component to measure change ofsharpness, use of the standard deviation of a change or difference imageto measure uniformity, use of the mean absolute deviation of intensitychange from its mean to measure uniformity, use of spatial moments of achange or difference image to measure uniformity, and use of momentquantities M_(1,0) ^(a)(t, δ), M_(0,1) ^(a)(t, δ), M_(i) ^(a)(t, δ) withabsolute index differences to measure uniformity of change.

In one embodiment of a system that performs fog and smoke detectionusing the techniques described herein, IR cameras are not utilized. Itshould be noted that an embodiment may include a subset of thoseincluded in FIG. 1. It should be noted that an embodiment used for fogand/or smoke detection may select not to exclude IR cameras since dataobtained using the IR cameras is not suitable for use in smoke and/orfog detection.

In the foregoing system embodiment not including IR cameras, thepositioning of the lights and the associated cameras for fog detectionin this embodiment are located in opposite directions to let the lightof each camera serve as a smoke detection device for the other opposingcamera. This is described elsewhere herein as the opposite lightingview. Whenever smoke, dust, and the like, build in the space between thetwo opposing cameras, such as 114 and 115, the smoke, dust, and the likeobscure the scene making the light of an opposite camera appear to dim.This dimming effect, as described and used herein, is a useful indicatorof the presence of smoke and may be used by the system described hereinto detect the presence of smoke. Placing the two cameras, such as 114and 115, opposite each other with associated light sources maximizes thedimming effect for early smoke detection. The CCD cameras in thisembodiment without including IR cameras measure and provide signals ofNear Infra Red (NIR) light in each of the cargo bays. Any one or more ofthe CCD cameras may use a wide angle lens (e.g., 90 degrees) and the CCDcameras may have at least a 320 by 240 pixel resolution. In oneembodiment, the CCD camera may have a resolution of 512×480 pixels andan optical wavelength response above approximately 770 nanometers. Sucha wavelength response may be shaped via a low pass optical filter thatblocks visible light at 30 dB attenuation at about 700 nanometers. Itshould be noted that the camera wavelength of about 770 nanometers andabove should not limit the scope of the techniques described herein. Insome instances when all or part of the visible light spectrum is madeavailable for detection, the operational camera wavelength may include aportion of the visible light spectrum, all the visible light spectrumand/or NIR spectra. For example, a camera may detect wavelengths betweenapproximately 400 and 1200 nanometers if the view of the bay is totallyobscured, such as, for example, when the cargo bay is full with cargoexcept for the gap space. The CCD camera in this embodiment may alsodetect temperatures above approximately 400 degrees centigrade. The LEDsin this embodiment may have an optical wavelength of around 880nanometers.

As described herein, it should be noted that longer wavelengths may bepreferred but may be limited in an embodiment in accordance with therange limitations of the particular CCD camera included in anembodiment. Lower temperature detection than those values specifiedherein is possible with CCD cameras that have a different detectionrange than as described in this particular embodiment.

In one embodiment of the system of without IR cameras which includessoftware operating in accordance with the data flow of FIG. 2, the imagecompensation routine 202 may receive external input values including acargo bay temperature value that may be used to check for conditions inconnection with fog formation as described herein. Other possibleexternal values are described elsewhere herein. Additionally, thetechniques described herein for HMM and/or multiscale modeling may alsobe omitted in this embodiment.

As described herein, an embodiment may use the feature data to confirmor deny a possible alarm as may be determined by a conventional smokedetector or other primary smoke detector. In other words, one or morefeatures as described herein may be used in connection with reducing thepossibility of false alarms detected by another smoke detection systemor component.

The image compensation described herein may also include compensationfor lens distortion, and preprocessing steps which may, for example,compensate for any noise and also improve the visual appearance of animage. In connection with fog as described herein, one method of foggyimage enhancement is dynamic range stretching based on histogramequalization.

It should be noted that the expression of the energy function Ek, asdescribed herein as the square sum of frame difference, may also beexpressed in any one or more other ways such as, for example, theabsolute value function, a linear combination of the pixel value and itssurroundings, or other non-linear function. An embodiment may use, forexample, fuzzy logic to process the energy indicator to detectcharacteristics indicative of fire. An embodiment may obtain data, suchas through empirical testing, in accordance with various fire andnon-fire conditions to create a knowledge base of data that may be usedin any one or more techniques described herein.

An embodiment may implement the follow-on processing described hereinusing a fuzzy logic-based decision unit to differentiate between a truefire condition, such as smoke, and non-fire or false alarm conditions,such as fog.

The feature extraction routines described herein may extract featuresincluding, for example, distribution (i.e., standard deviation) of pixelintensity. The distribution of pixel intensity may be determined usingany one or more conventional techniques such as, for example, measuringthe deviation in intensity between the frame mean intensity and theframe pixels.

As described herein, wavelets may be used to generate features for usewith non-stationary processes. This is in contrast to stationaryprocesses including, for example, an instance of fast evolving fireevents, and sudden fog formation. The multi-scale approach alsodescribed herein may be used, for example, in fusing data gathered bydifferent sensors of different scales or resolutions. In some instances,cargo bay monitoring may require fusion of frames taken at differentfocus points such as may be the case of near range-focus when cargocontainers are present and far range-focus when the cargo bay is empty.

Frames collected at such different focus points may used in connectionwith a multiscale framework and technique as described herein: Themultiscale technique may be used to provide a scale invariantinterpretation of the information.

The PCA technique as described herein may be used in connection withclassifying various aerosols, such as smoke and fog, by characterizingeach aerosol by a profile showing the variation over time of the first(or respectively second) principal component (eigenvalue) versus thesecond (or respectively first) principal component. An approximation ofthis technique is to represent each class of aerosols by the profileshowing average intensity (i.e., first order) versus the standarddeviation (i.e., second order).

It should be noted that the cameras and associated lighting sources inan embodiment may be installed within a two-inch gap from the ceiling ofa cargo bay. An aircraft cargo bay area may be full except for atwo-inch gap space between the ceiling in the cargo bay area and the topof the cargo. Other arrangements may have a gap space of a differentsize than as described herein. As such, the images used herein may beobtained from one or more cameras and associated one or more lightsources mounted in this two-inch gap from the ceiling of the bay areawith a camera and an associated light source each mounted opposite oneanother at approximately the same height level. The camera and itsopposing light source may be mounted opposite one another in this twoinch gap directly across from one another. If the light starts to dimquickly, as may be determined by analyzing the image obtained with acamera over time, this may be used as a feature that indicates thepresence of smoke.

It should be noted that the distance between the camera and itsassociated light source may represent a maximum distance between any twoopposing positions within the cargo bay area.

Referring now to FIG. 43, shown is an example of a rectangular shapedcargo bay area that may be monitored. Shown in the cargo bay area 4500are positions A, B, and C. An embodiment may position a camera and itsopposing light source at positions A and B rather than, for example, atpositions B and C.

As described herein, an embodiment may include CCD cameras withdifferent characteristics. An embodiment may include one or more CCDcameras that are NIR CCD cameras with an operational wavelength between770 and 1000 nanometers. An embodiment may also include CCD cameras thatmay be characterized as conventional CCD cameras having an operationalwavelength between approximately 400 and 1200 nanometers. Theseconventional CCD cameras may be used when the cargo bay area, or otherviewing area, is obscured, such as, when the area is filled with cargo,or nearly so, except for the two-inch ceiling gap. An embodiment mayalso utilize one or more CCD cameras with an operational wavelengthbetween approximately 400 and 1200 nanometers with one or more portionsof the range of approximately 400 to 1200 nanometers blocked or excludedin accordance with a particular device, light source, and the like,emitting at particular portions of the range of approximately 400 to1200 nanometers. This exclusion may be performed by using one or morefilters in accordance with the particular range to be excluded.

It should be noted that an embodiment may use components havingdifferent particulars than as described herein for different components,such as the camera types, sizes, ranges, and the like. The specifics setforth herein should not be construed as a limitation of the techniquesand system described herein. For example, a CCD camera may be used inone embodiment having the specific camera characteristics describedherein as related to, for example, wavelength range of sensitivitybetween approximately 400 and 1000 nanometers, a pixel resolution of 320by 240, frame rate of 30 frames per second, and the like. An embodimentmay also be include a CCD camera having different characteristics thanas described herein such as, for example, a frame rate of 25 frames persecond or an open frame rate, and the ability to detect temperaturesabove approximately 700K due, at least in part, to the wavelengthresponse thereof. An embodiment may also use different types of camerasincluding, for example, a line scan camera in addition to, or insteadof, other camera types described herein.

An embodiment may also distribute processing tasks between componentsthan as described herein, such as in connection with FIG. 1. This mayvary in accordance with the particular hardware with each embodiment aswell as the particular design of a system utilizing the techniquesdescribed herein. For example, referring to FIG. 1, the processing oftasks may be distributed between the CVCU as well as among one or moreother components, such as the cameras. This may depend on factors suchas whether cameras include on-board processing capabilities. This justone example of a system using the techniques described herein may beimplemented. Aircraft data, such as, for example, temperature used inprocessing described herein, may come from one or more different sourcesand/or a central unit, such as the central maintenance system 176described herein.

What will now be described are techniques that may be used withdetecting and discriminating smoke based on shrinking and growingbrightness regions of one or more images. The techniques describedherein may be used in one embodiment using CCD cameras and switchinglight units as may be used in a cargo fire verification system (CFVS),described elsewhere herein, for detection and verification of fire in anaircraft cargo bay. A CFVS is described, for example, in connection withFIG. 1. CFVS may be used to reduce the rate of false alarms issued bythe conventional smoke detection systems installed in majority ofcommercial aircraft. In one embodiment, the CCD cameras receive NIR(near infrared) light from the illumination units controlled by thesystem's control unit. By appropriately switching the illuminationunits, different illumination scenarios are obtained. This allowsdetecting of various visual effects in images associated with thoseillumination schemes. The data fusion techniques, also describedelsewhere herein, may be used to combine evidence about aerosol presenceobtained from those images. This allows faster and more reliable aerosoldetection and discrimination so that the presence of smoke may bedetected.

Described in following paragraphs are techniques that may be used inconnection with an image processing feature for smoke detection. Thefeature may be characterized as local since it is built on a pixel bypixel analysis rather than on global analysis of the frame as a whole.Other techniques may use global features, such as the average frameintensity and average frame motion and their standard deviations, whichcharacterize the frame as a whole. Although such global analysis may becomputationally efficient and used in some instances, such globalanalysis and characteristics/features related thereto, may not beadequate in some cases where only a small group of pixels are affected.In addition the feature described herein may be characterized as robustwith respect to vibration and does not require a reference frame forprocessing. The technique looks for connected (i.e. non-isolated) pixelsabove certain thresholds. The connectivity as used with this techniquerelates to pixels greater than a brightness threshold or intensity ofinterest. The technique described herein uses the additional property ofconnectedness of pixels under test in a segment-based image processingapproach. It should be noted that considering only pixels with certainintensity descriptors, without being coupled with connectedness orconnectivity, may be misleading in a noisy environment (e.g. hotenvironment, camera artifacts, and the like).

For a pixel to be characterized as non-isolated as used herein, thepixel is connected to n (with n being greater or equal to 1) neighboringpixels. Thus, for a pixel to satisfy the connection condition, it mustbe greater than a threshold intensity and also connected to a predefinednumber of neighboring pixels n which are also above the thresholdintensity. What will now be described are different types ofconnectivity that may be used in describing a pixel neighborhood. Thesemay include, for example, the 4-pixel and the 8-pixel types ofconnectivity, and extensions or variations of the foregoing 2 types.

Referring now to FIG. 44, shown is a representation 4600 of a 4-pixelconnectivity. The pixel under consideration for which connectivity isbeing determined is 4604. Pixel positions considered for the 4-pixelconnectivity are the 4 pixels denoted as 4602 a-4602 d.

Referring now to FIG. 45A, shown is a representation 4610 of an 8-pixelconnectivity. The pixel under consideration for which connectivity isbeing determined is 4614. Pixel positions considered for the 8-pixelconnectivity are the 4 pixels denoted as 4612 a-4612 h.

Note that the 4-pixel connectivity may be characterized as a strongerconnectivity than that as represented by the 8-pixel type. In theforegoing, the center pixel is the pixel of interest. In the 8-pixelconnectivity representation, the 4 pixels located at the corners of thepixel of interest (4612 a, 4612 c, 4612 f, and 4612 h) may becharacterized as representing “weaker” connectivity of the pixel underprocessing with respect to the other 4 pixels.

Another possible type of connectivity that may used in an embodiment maybe characterized as variations based on the foregoing 4-pixel and8-pixel connectivities in which other pixels of outer layers arerequired to be above the threshold intensity in addition to specifiedadjacent pixels.

Referring now to FIG. 45B, shown is an example 4620 of anotherconnectivity that may be used in an embodiment. The illustration 4620may be characterized as an extension of the 8-pixel connectivity type inwhich the connectivity is extended to a next outer layer of pixels withrespect to the pixel of interest.

Referring now to FIG. 45C, shown is an example 4630 of anotherconnectivity that may be used in an embodiment. The illustration 4630may be characterized as a horizontally-oriented connectivity. Othertypes of connectivity may include, for example vertically-orientedconnectivity, shape-specific connectivity (e.g., connectivity in theform of a square, triangle, rectangle), and the like, to emphasizecertain properties of the data under analysis. For example, arectangular shape as shown in 4630 may be used to focus on motion alonga horizontal line.

In one embodiment, the techniques described herein may be used to detectand “quantify” the shrinking of bright regions of arbitrary shapes dueto smoke (or other similar aerosols). In particular the occurrence of adimming of the opposite camera light may be used in connection with thisfeature. One feature described in following paragraphs is a number ofbright and connected pixels associated with a frame, or a portionthereof. By comparing at different points in time the number of brightand connected pixels of a connected bright region selected in accordancewith predetermined conditions, as described in more detail in followingparagraphs, a smoke condition may be detected as the size of a connectedbright region shrinks.

Referring now to FIG. 46, shown is a flowchart 4650 of processing stepsof one embodiment for detection of smoke. It should be noted that, asdescribed elsewhere herein, the smoke indicator produced as an output ofthe processing steps of 4650 may be used in many different arrangementsin an embodiment. The smoke indicator output of step 4668 may be used,for example, as a single input or may be combined with other indicatorresults, such as using data fusion, to produce a system level smokeindicator and/or fire condition indicator. The smoke indicator may beused as a verification for a conventional or other fire detectionsystem.

At step 4652, a shrinkage threshold and a brightness threshold aredetermined. In one embodiment, these values may be determined off-lineprior to running the smoke detection system for smoke and firedetection. The shrinkage threshold may be characterized as a thresholdvalue representing a difference of a number of pixels in a connectedbright region determined with respect to two different points in time.In other words, the number of pixels in a connected bright region isdetermined at a first point in time and again at a second point in time.The difference between the number of pixels at each point in time isdetermined and compared in subsequent processing steps to the shrinkagethreshold. An embodiment may consider one particular case of interestwhen the “previous” frame is the reference frame taken at time zero.Thus, in this instance, the difference between the number of connectedand bright (i.e. above the threshold) pixels at the current frame andthe original number (i.e. at time zero) of connected and bright pixelsconstitutes the quantity of “shrinkage”. The reference frame could befixed and held unchangeable at the system memory or could be updatedaccording to a certain scheme that takes in consideration various flightproperties. Such flight properties may include, for example, stationary(i.e. long time) variations of the scene or the camera properties,air/ground status, door open/closed status, whether a fire event hadhappened, or whether a fire extinguisher was deployed. When thedifference is above the threshold, a smoke indicator output is set. Thebrightness threshold represents a pixel intensity threshold level usedin determining a minimum level of pixel intensity for inclusion in aconnected bright region. As described elsewhere herein, the regionshrinkage may be determined using one or more different features basedon the number of pixels determined for a connected bright region.

It should be noted that although step 4652 may be performed off-line inan embodiment prior to utilizing the smoke detection techniquesdescribed herein for real-time fire/smoke detection, an embodiment mayalso perform this step 4652 at other times. An embodiment may useempirical testing and determination and general know how in accordancewith different testing conditions to determine these values. Differenttechniques and considerations that may be used in connection determiningthese and other threshold values are described elsewhere herein in moredetail.

Steps subsequent to step 4652 may be performed when the techniquesdescribed herein are used in data gathering and analysis for smoke andfire detection.

At step 4654, a first set of one or more frames may be obtained toestablish a reference frame. At step 4656, the connected bright regionis determined for the current frame. This is described in more detailelsewhere herein. At step 4658, a determination is made as to whethersmoke detection and processing using the techniques of flowchart 4650 iscomplete. If so, processing stops. Otherwise, control proceeds to step4660 to obtain another frame for which a connected bright region isdetermined at step 4662.

At step 4664, region shrinkage is determined. In one embodiment, thismay be determined as the difference of the number of pixels in aconnected bright region as determined at two different points in time.Other parameters that may be used in an embodiment to determine regionshrinkage are described elsewhere herein. At step 4666, a determinationis made as to whether the region shrinkage is greater than the shrinkagethreshold. If so, control proceeds to step 4668 where a smoke indicatormay be set as an output. Otherwise, control proceeds to step 4658 wherea determination is made as to whether processing is complete. If not,processing continues with the next set of image data.

In one embodiment, a function may be used to determine the number ofbright and connected pixels associated with a first set of image data.It should be noted that an embodiment may use, for example, an entireframe of image data or a portion of a frame in determining the number ofbright and connected pixels. An embodiment may compare the same testregions for different frames.

Referring now to FIG. 47, shown is a flowchart 4662 of processing stepsof one embodiment for determining a connected bright region for a set orframe of image data. This flowchart describes in more detail theprocessing associated with step 4662 and step 4656 of flowchart 4650. Atstep 4670, the test region to be analyzed is determined. The test regionmay be the entire frame, or a portion thereof. Different techniques forselecting a portion of a frame are described in more detail elsewhereherein.

At step 4672, a connectivity value and a minimum number of neighboringpixels value is selected. The connectivity value may be 4 or 8indicating, respectively, whether the 4-pixel or 8-pixel connectivity isused. The minimum number of neighboring pixels indicates the minimumnumber of pixels with respect to a pixel of interest that are bothconnected to the pixel of interest and are above the pixel brightness orintensity threshold as may be determined at, for example step 4652processing. The minimum number of neighboring pixels is a value between1 and the “connectivity value”.

At step 4674, a boolean flag DONE is initially set to false. At step4676, the pixel candidate is assigned the first pixel candidate. Pixelcandidate selection is also described in more detail in followingparagraphs. At step 4678, a determination is made as to whetherprocessing of the test region is complete. If so, processing stops.Otherwise, control proceeds to step 4680 where a determination is madeas to whether the pixel candidate has a brightness or intensity greaterthan the brightness threshold and also has at least the minimum numberof connected neighboring pixels also greater than the brightnessthreshold. If so, control proceeds to step 4682 where the pixelcandidate and its neighboring pixels are added to the connected brightregion. It should be noted that pixels outside the test region may beused as neighboring pixels in determining whether a pixel underconsideration within the test region should be included in the connectedbright region. For example, a pixel candidate may be located in theuppermost left corner of a test region. Pixels outside the test regionare used in determining a number of neighboring pixels of the pixelcandidate. However, only pixels in the test region in this embodimentmay be included in the connected bright region.

It should also be noted that an embodiment may determine a connectedbright region at step 4682 to include only the pixel candidate ofinterest rather than also include the neighboring pixels. For example,an embodiment may also use a variation of what is described at step 4682represented as follows:

region=region UNION pixel candidate, if pixel candidate>brightnessthreshold, AND is connected with min number of neighbors in this frameAND is included in region for K other previous consecutive (orotherwise) frames.

The foregoing variation does not require retaining the previous frameson the memory. The approach represented in FIG. 47 may be characterizedas more robust with respect to noise and may be preferred in use withother techniques, such as, for example, with hotspot detection asdescribed elsewhere herein.

Control proceeds to step 4684 either after execution of step 4682, ordirectly upon determining the pixel candidate does not meet the testcondition(s) at step 4680. At step 4684, the next pixel candidate isdetermined and processing continues with subsequent pixel candidates todetermine the connected bright region associate with the current set ofimage data, or portion thereof, until processing of the current testregion is complete.

In connection with step 4670 processing for determining the test regionto be analyzed for a current set of image data, an embodiment may useany one or more techniques. An embodiment may use an entire frame as thetest region. An embodiment may also use a portion of a frame or set ofimage data. In one embodiment, the test region may be determined inaccordance with the projection area of the opposite camera lightingphysical coordinates.

What will now be described are processing steps of one embodiment fordetermining a portion of an image frame to be used as the test region.

Referring now to FIG. 48, shown is a flowchart 4670′ of processing stepsof one embodiment for determining a test region using the oppositecamera light. At step 4700, the opposite camera lighting view isexamined at a time 0, for example, prior to use in smoke detection. Theprojection in the image plane of the opposite camera light isdetermined. A rectangular framing of the image plane may be performed atstep 4702 to capture the portion of the image including the light. It iswithin this portion of the image that changes may be observed of therecorded image of the projected light source in the event of smoke.Accordingly, the analysis of a connected bright region is performed inone embodiment with respect to the portion of the image including thisopposite camera light projection view. At step 4704, the brightest pixelin the test region may be selected and used, at step 4706, as the firstpixel candidate in flowchart 4662 processing. Subsequent pixelcandidates are selected in this embodiment by sweeping through theremaining pixels in the test region have not been considered as pixelcandidates in a row by row, or column by column fashion. Otherembodiments may use other techniques for considering each pixel withinthe test region as a pixel candidate and making a determination as towhether the pixel meets the specified brightness threshold andconnectivity criteria.

It should be noted that the foregoing processing steps in one embodimentare based on the condition that the opposite lighting source is the onlylighting source present. An embodiment may also performing filtering anduse other techniques to mask out or account for other unwanted lightsources for the purpose of this analysis. Additional light sources maybe known or fixed, for example, as part of an initial condition such asa constant background or external light source. For example, a cargodoor may be open and generate an additional external light source. Thetechniques described herein may be used to monitor the cargo bay areafor fire detection when on the ground, for example, with cargo beingloaded or unloaded. By taking into account the initial condition of allexternal light sources in addition to the opposite lighting source, thetechniques and system described herein may be used at times other thanwhen in flight or without having the opposite camera light be the onlylight source. It should also be noted that the techniques describedherein are not limited for use in a cargo bay. They may also be used inconnection with monitoring other areas, such as storage areas, and thelike.

An embodiment may also use other techniques in connection withdetermining the test region. The foregoing processing of FIG. 48 uses apriori information of the opposite camera position. This information maynot be available or used in an embodiment, for example, due to constantchanging lighting arrangements. An embodiment may also select anotherfixed portion of the image frame for analysis. An embodiment may alsouse the entire frame of pixels and sweep the entire image, pixel bypixel, until the connected bright region is detected.

Referring now to FIG. 49, shown is a representation 4720 of an imageframe in a coordinate system. In this representation, the frame istreated as a grid of discrete elements (i.e. pixels) ordered from top tobottom and from left to right as illustrated in an M (number of rows) byN(number of columns) frame. In one embodiment, what will now bedescribed is how a pixel candidates may be determined using a “sweeping”process through the foregoing representation for a test region. Thesteps in following paragraphs describe a “sweeping” process that may beused more generally in an embodiment whenever accessing a rectangulararea of pixels—including the whole frame. In one embodiment, thesweeping may be performed using a double loop sweeping through each rowof the test region. Consider, for instance, the case of a rectangularregion characterized by two points containing the coordinates of theupper left corner (Mo,No) and lower right corner (M1, N1). Pixels ofsuch rectangle may then be accessed as expressed by the following pseudocode-like representation:

while next candidate is not FOUND do {m = Mo : M1  {n = No : N1 ifP(m,n) > brightness threshold and has not been considered as a pixelcandidate; then return pixel (m,n) as a pixel candidate; else n = n+1 }m = m+1 }In the foregoing example, for a pixel coordinate (m,n), the firstcomponent, m, (the width or row) increases, while the second component(length or column) increases to the right. Pixel coordinates areintegers between 1 and the frame size. To further illustrate theforegoing with reference to FIG. 50, for example, a goal is to look forpixel candidates as pixels of interest in the rectangular portion 4732.Pixels in the test region 4732 may be accessed beginning with theindices cycling through each row. It should be noted that an embodimentmay also sweep through the test region in a column like or otherfashion. It should also be noted that the foregoing processing steps mayuse any one or more of a variety of different data structures inaccordance with the particular technique used to examine each pixel inthe test region to indicate that a particular pixel has already beenconsidered as a pixel candidate. For example, a pixel in the test regionmay not be above the brightness threshold and excluded from furtherconsideration if an embodiment first determines, for each pixel in thetest region, whether the pixel is above the brightness threshold.

As described herein, an embodiment may monitor at each new frame, orselected frame intervals, the number of non-isolated pixels and use thisas part of a feature to be used in smoke detection. An embodiment mayincluding a function for computing the number of “bright and connected”pixels having the following interface:

ShrinkingRegion(TestRegion, Threshold, Connectivity,MinimumNeighboringPixels)

In one embodiment of this function, inputs are:

-   -   1. TestRegion: the set of pixels to be processed    -   2. BrightnessThreshold: the minimum pixel-value to be considered        for inclusion. In one embodiment, a default may be used which is        the mean value of the region, as indicated by the parameter        TestRegion, to be processed.    -   3. Connectivity: neighboring pixels: either 4 or 8; the default        is 8    -   4. MinimumNeighboringPixels: a number between 1 and        “connectivity” indicating the minimum number of neighboring        pixels to the pixel of interest that should be considered for        inclusion. In one embodiment, a default value of 1 may be used.        An embodiment of the foregoing function may be:    -   a) Applied only to the region of interest. In one embodiment,        the region of interest maybe, for example, the upper quarter of        the frame where the 2-inch, or other size, gap located at the        top of a cargo bay area is included.    -   b) Applied to every other pixel of a frame, or portion thereof,        horizontally as well as vertically. This may be used to reduce        the computation complexity even further by a factor of 4. An        embodiment utilizing this step b) may prefer to select a        connectivity value of 8.

It should be noted that an embodiment may use one or both of theforegoing steps a) and b).

Prior to invoking the foregoing function, a brightness threshold, asindicated by the Brightness Threshold input parameter above and as usedin step 4652 of FIG. 46, may be established. As described elsewhereherein, determining the brightness threshold is a task that can be doneoffline.

Referring now to FIG. 51, shown is a flowchart of processing steps ofone embodiment for determining the brightness or intensity threshold inwhich the histogram of grey scale values of the initial oppositelighting view is examined. An image may be obtained offline prior to useof the techniques described herein in connection with smoke detection.The image of an opposite camera lighting view and its associated imagehistogram may be obtained as in step 4752. The histogram may list thedifferent pixel grey level intensities and the number of pixels havingthat particular grey scale value. Using this distribution, thebrightness range as may be associated with the opposite camera light isdetermined at step 4754. At step 4756, an embodiment may select theminimum value of the brightness range as the brightness threshold. Itshould be noted that other embodiments may select other values as thebrightness threshold and use other techniques than as described herein.

The processing steps of FIG. 51 will now be illustrated with respect toan image and its associated histogram. Referring now to FIG. 52, shownis an illustration 4770 of an image frame obtained using an oppositelighting view. Referring now to FIG. 53, the histogram 4782 illustratesthe grey level distribution in accordance with the number of pixels withthe grey level values. On the X axis is the grey level value and thenumber of pixels indicated on the Y axis. The histogram 4784 is azoom-in view of a portion of the histogram 4782 of the bright pixels,representing the opposite light having a range of 240 to 255 gray levelssuch that the brightness threshold in an embodiment may be set at 240 inthis instance.

Referring to 4782, it should be noted that a majority of pixels (i.e.black) are in the camera noise level of 20 to 40 gray levels. The largedifference between the pixels of interest of the opposite light sourcein this example and the grey level values of the background camera“noise” in that particular example indicates that the techniquedescribed herein may be characterized as more robust when there may bedifferent types of noise, such as with ambient temperature and dust.This difference between the two spikes in the histograms below indicatesa relatively large amount of tolerance in setting the brightnessthreshold to filter out various uncertainties and other image noise.

It should be noted that imposing a higher number of neighboring pixelsfor inclusion results in excluding pixels with “weaker links” to theneighbors—although they are above the brightness threshold.Additionally, the farther away from the lighting source an image isobtained, the less connected a pixel may become with respect to otherpixels.

An embodiment may use the foregoing techniques to determine a number ofpixels which are both connected and above a brightness threshold for atest region. The time series of various test regions may be analyzed todetermine and detect “fast” shrinking regions. A detection of a “fast”shrinking connected bright region may be used to indicate the presenceof smoke. It should be noted that as used herein, “fast” may becharacterized as a relative term when compared, for example, to a rateof change over time for images associated with the presence of fog ordust. The feature of the rate of change with respect to a connectedbright region may be determined as “growing” (e.g., the number of new“bright” pixels that exceed the brightness threshold per time sample),or “shrinking” (e.g., the number of pixels per time sample that become“non-bright” (below brightness threshold) for each region.

It should be noted that an embodiment of the function ShrinkingRegionmay determine a number of connected and bright pixels in a region in avariety of different ways. An embodiment may count the number of pixelsincluded in the connected bright region in which each pixel in theregion is both above the brightness threshold and has a minimum numberof such connected neighboring pixels. As shown in step 4664 of FIG. 46,values obtained at different points in time may be subtracted andcompared to a threshold amount of change. An absolute value of thedifference obtained may also be used.

An embodiment may also determine a number of bright and connected pixelsusing a pixel by pixel comparison with respect to a reference frame, forexample, that may be obtained at a time=0 prior to obtaining image dataas part of monitoring for fire conditions. In this instance, each pixelof the reference frame is examined to determine if each pixel's statehas changed with respect to the pixel's state in the current frame. Inother words, a pixel is included in the number of pixels feature asdetermined, for example, by the ShrinkingRegion function, if the pixel'sstate has changed from “bright and connected” (meets brightness andconnectivity criteria) to “not bright or not connected” (does not meetbrightness and/or connectivity criteria) with respect to the referenceimage and a current image, and vice versa. A difference between two suchvalues determined for two different points in time may be used as wellas an absolute value of the difference. A feature that may be used isthe ratio of a number of bright and connected pixels using a pixel bypixel comparison with respect to a reference frame compared to thenumber of bright and connected pixels of a reference frame. Two suchratios obtained at two points in time may be subtracted or otherwisecompared to a threshold as, for example, at step 4666 to make adetermination as to whether a smoke condition exists. Use of such aratio may be used, for example, to account for concerns regardingdifferent visibility conditions as well as, for example, mounting LEDsand lenses.

It should also be noted that, rather than examine a difference ordetermine a rate of change between two points in time, an embodiment maycompare a feature value described herein utilizing the connected andbrightness criteria obtained at a first point in time to a thresholdvalue.

Another example of a feature that may determined at step 4664 and usedat step 4666 may be represented as:

$\frac{{{{FeatureValue}(t)} - {{FeatureValue}(0)}}}{{FeatureValue}(0)}$in which FeatureValue(t) represents a value of the feature at time t fora frame, or portion thereof, and FeatureValue(0) represents a value ofthe feature at time 0, or of a reference frame, or portion thereof.

Examples of such features may include, without limitation, the number ofbright and connected pixels in a connected bright region, meanintensity, intensity standard deviation, gradient mean, and gradientmean standard deviations. The foregoing may be characterized as a“relative” comparison to the reference frame and may be preferably usedfor early detection and robustness with respect to mounting and hardwaretolerances as to various cargo bay configurations.

It should also be noted that an embodiment may include a time dimensionof connectivity as described elsewhere herein in connection with 5004 ofFIG. 64B. This time dimension may be used in connection with determiningwhether a pixel is included in a connected bright region. In otherwords, in addition to requiring that a pixel candidate meet a brightnessintensity or threshold, and a connectivity criteria, the pixel candidatemay also be required to exhibit the foregoing for a minimum number of Kframes or time samples.

The various thresholds used herein may be determined in accordance withone or more criteria and other conditions that may vary with eachembodiment and system. For example, different values may be used inaccordance with the particular conventional smoke or fire detection unitthat may also be used in an embodiment. For example, if the techniquesused herein are being combined or otherwise compared to the rate ofdetection of an existing system, the particulars of that existing systemmay serve as benchmarks or minimum values of acceptability used inaccordance with the techniques described herein. In one embodiment, theperformance criteria may include that the parameter values be tuned suchthat at least the following always hold true: no fire or smokeconditions are misclassified and that the smoke or fire condition isdetermined at or before the time at which an existing or conventionalunit detects such a condition. Once these two conditions are met, theembodiment may also seek to tune or select parameters such that thenumber of false positives are minimized. In other words, as a secondarycriteria, an embodiment may select thresholds, and the like, that resultin a minimum number of non-fire conditions, such as fog and dust, beingproperly classified. Other embodiments may use other or differentcriteria than as described herein that may be used in the particularselection of parameter and threshold values for an embodiment.

An embodiment may empirically tune the selection of parameter andthreshold values through actual testing scenarios, simulation of fireand non-fire conditions, or a combination thereof.

What will now be described are some characteristic example curves of theforegoing feature using the number of bright connected pixels for a testregion. It should be noted that the fire experiments, cases and codesused herein are included in the European BSI Standard entitled EN-54Fire Detection and Fire Alarm Systems. It should be noted that theresults indicated by these curves are illustrations of exampleconditions and alarms in accordance with particular testing conditions.Actual results may vary in accordance with each embodiment.

In one set of test data using TF2 fire experiments, fire and smokeconditions were detected “on time” with respect to the amount of time ittakes a conventional smoke detector, such as, for example the Cerberusdetector. FIGS. 54 and 55 illustrate the detection performance of thisfeature of shrinking regions. The NP8 curves indicate the time series ofthe number of bright pixels connected (8-type connectivity) to all its 8neighbors. The NP4 curves indicate the time series of the number ofbright pixels connected (4-type connectivity) to its 4 neighbors. Notethat in these FIGS. 54 and 55, the set of 4-connected pixels is largerthan the set of 8-connected ones because the latter set is a subset ofthe previous one. Also note that at the end of an experimental runtesting illustrated by FIGS. 54 and 55 using the techniques describedherein, the foregoing data sets are reduced to empty because of thetotal obscuration of the opposite light by smoke.

It should be noted that with reference to FIGS. 54-57, the verticaldashed line indicates the fire or smoke detection time for aconventional or existing fire detection system for purposes ofcomparison. Also, the number of bright and connected pixels indicated onthe Y axis is determined by a pixel by pixel comparison of a currentframe with a reference frame obtained using the diagonal lighting view.If a pixel has changed its state from meeting the specified criteria forinclusion in the connected bright region to not meeting the criteria, orvice versa, the pixel is included in the total number indicated by theY-axis.

Referring to FIG. 55, for example, if the threshold number of bright andconnected pixels using a pixel by pixel comparison with respect to areference frame is set, for instance, at 150 then the detection leadtimes are, respectively, 45 seconds and 25 seconds for the 8 type ofconnectivity and 4-type of connectivity. As described elsewhere herein,it should be noted that setting of the function parameters depends onthe compromise or criteria for an embodiment regarding early detectionand false alarm (dust/fog) tolerance.

In additional testing conditions using the foregoing smoke detectionfeatures, all TF5 fire experiments also detected smoke conditions “ontime” with respect to when the same condition is also detected by theCerbus detector. FIGS. 56 and 57 graphically illustrate the extractedfeature in accordance with a set of test data to generally illustratethe behavior of the feature under the specific test conditions.

Referring to FIG. 56, keeping the detection threshold number at 150 asdescribed previously in connection with FIG. 55 results in detectionlead times in comparison to detection time by a conventional detectionsystem used in testing of 45 seconds and 40 seconds for, respectively,the 8 type of connectivity and 4-type of connectivity.

It should be noted that in connection with FIG. 57, illustration 4860indicates two spikes around 160 and 200 seconds. In the illustrated testconditions, these spikes are due to the flames observed at the oppositeview within the region of the 2-inch gap. The “2-inch gap”, other sizegap at the top of the cargo space as may exist in connection with anaircraft cargo bay, is described elsewhere herein. An embodiment may,for example, consider only pixels that originally are indicated asbright with respect to a first or reference image. In other words, theoriginal region can only shrink. An embodiment may choose to onlyconsider pixel state changes from bright in a first reference frame tonon-bright in a subsequent frame. The reference frame may be used toassist in filtering unwanted conditions that may be encountered. As alsodescribed herein, the absolute value of the difference between a firstfeature value determined for a frame and a second feature value at time0 or the feature value.

Referring now to FIGS. 58 and 59, shown are graphical illustrations ofthe connected bright region feature's performance in connection with thepresence of, respectively, dust and fog. FIGS. 58 and 59 may becharacterized as illustrating the behavior of the foregoing feature inconnection with non-smoke conditions, such as fog and dust. Thus, thebehavior of this feature over time with respect to smoke isdistinguishable from the behavior of this feature over time with respectto non-smoke conditions. With reference to FIG. 58, a test run using a4-type connectivity and a 120 detection threshold, 8 (out of 19) dustcases were properly confirmed as non-smoke/fire conditions.Additionally, there were also 3 (out of 17) fog experiments that wereproperly confirmed as non-smoke/fire conditions. It should be noted thateven when covered by fog, the bright pixels may not dim because of the“transparency” of foggy environment.

The foregoing described a feature based on the notion of imagesegmentation that relies on a pixel by pixel analysis, rather than on aglobal analysis of the entire frame. The foregoing may be used indetecting smoke via monitoring the dimming of an opposite light to thecamera of interest. As described herein, this feature may becharacterized as the number of connected pixels above a predeterminedbrightness threshold. The foregoing techniques utilize the notion ofpixel connectedness in segment-based image processing coupled with pixelbrightness or intensity level considerations. The foregoing techniquesmay be used in an embodiment for early and strong smoke detection whileminimizing false alarms due to dust and fog. Another advantage of theforegoing feature is its robustness with respect to vibration andinitial view content.

In the foregoing, pixels may be used in selection of a seed or initialpixel candidate and for next pixel candidates in connection with theShrinkingRegion function as described herein. Any one or more differenttechniques may be used in connection with pixel selection for thesevalues as well as in determining the region of interest (test region).An embodiment may look for “bright” and “connected” pixels within apredetermined “small” sub-image of the frame based on a priori knowledgeof the opposite camera position. For instance, given the physical XYZposition of the camera, the camera's projection can be determined in theimage plane (i.e. xy). Then a “small” rectangle around that center xymay be determined to account for variability in the camera mounting andlight power (i.e. size of brightness area or image projection due to theopposite camera's light source). An embodiment may also start sweepingthe entire image, or a portion thereof, pixel by pixel (e.g. startingfrom the pixel at the upper left corner) until a bright and connectedarea is detected. The foregoing assumes that no other light, during theopposite view lighting, is present except the opposite light. In otherwords, an embodiment may use the entire image or a portion thereof.

It should be noted that as used herein, TF2 is a type of fire welldefined by a European standard (i.e. EN54) among other fire types (i.e.TF1 to TF7). TF2 is actually the smoldering of 30 pieces (1 cm by 2 cmby 3.5 cm each) of Beech wood over a pan in a test fire chamber of acertain dimensions (I think the dimensions are about 9 by 7 by 4meters). As used herein, Cerberus detection time may be used as arepresentative of a “conventional” smoke detector. The brand “Cerberus”is manufactured by Siemens. Other conventional smoke detectors may alsobe used in an embodiment and parameters, threshold, results, and thelike using the techniques described herein may vary with eachembodiment. As used herein, “on-time” means at the time or a few secondsbefore the conventional smoke detector detects a smoke condition. Asalso used herein, “dark view” may refer to the lighting scenario inwhich all lights, such as all controlled lights in the cargo bayarea/system, are off.

It should be noted that a trend analysis of any one or more of theforegoing features may be used in determining whether a smoke conditionexists. The trend analysis may include comparison to a known trend offeature values previously observed over time. In other words, anembodiment may indicate the presence of smoke if a pattern of featurevalues is detected for a plurality of different points in time. Whatwill now be described are techniques that may be used in connection withdetecting and discriminating hotspots. In one embodiment, near infrared(NIR) CCD cameras or digital cameras may be used with pixel connectivityas described herein in a technique for hotspot detection anddiscrimination. In one embodiment, a filter may be used to block ambientlight. However, the particulars of such embodiments as described hereinshould not be construed as a limitation of the other types of filters orother types of equipment that may be used with the hotspot techniquesdescribed in following paragraphs. For instance, the techniquesdescribed in following paragraphs for hotspot detection may be used inan embodiment with IR cameras (i.e. no filter is necessary) or with CCD(or CMOS) cameras without using a filter. Rather than use a filter, anembodiment may use a comparison and differentiation technique betweenframes of different views, or frames of the same view but at differenttimes, as described elsewhere herein, for example, in connection withFIG. 36. The filter itself may be used to block a portion of light orother portion of the spectrum (visible or otherwise).

The technique described in following paragraphs may be used with asystem, such as the system of FIG. 1 and its variations describedherein, for detection and verification of fire in aircraft cargo bay. Itshould be noted that the techniques described herein are not limited foruse within a cargo bay, but may also generally be used in connectionwith other embodiments of a fire detection and/or verification system.In connection with one embodiment of the system described herein forfire detection, it may be desirable to reduce the rate of false alarmsissued by the conventional smoke detection systems as may be the case,for example, with those installed in a majority of commercial aircraft.The system's CCD cameras or arrays or other digital cameras may receiveNIR light from the illumination units controlled by the system's controlunit. By appropriately switching the illumination units, differentillumination scenarios are obtained. Various lighting scenarios that maybe used are described elsewhere herein. Use of different lightingscenarios allows detecting of various visual effects in imagesassociated with those illumination schemes. The data fusion techniquesmay be used to combine evidence about aerosol and hotspot presenceobtained from those images. The data fusion approach may also be used inan embodiment for hotspot and flame detection with the techniquesdescribed herein.

The techniques that will now be described use an image processingfeature for hotspot and flame detection. In one embodiment, the featuremay be characterized as local in nature and may be used in performing apixel by pixel analysis rather than a global analysis of the frame as awhole. It should be noted that the techniques described herein may alsobe used an embodiment to analyze an entire frame or portion thereof, aswill be described in following paragraphs. Other existing techniques andfeature may use global features, such as the average frame intensity andaverage frame motion and their standard deviations. The featuredescribed in following paragraphs may also be characterized as robustwith respect to vibration and does not require a reference frame forprocessing. The technique in following paragraphs uses pixelconnectivity by determining connected (i.e. non-isolated) pixels abovecertain thresholds. An embodiment may use this technique by coupling thefeatures of connectivity and pixel brightness or intensity for use insegment-based image processing. It should be noted that considering onlypixels with certain intensity descriptors may be misleading underparticular conditions, such as in a noisy environment (e.g. hotenvironment, camera artifacts, and the like).

The techniques described in following paragraphs may be used to detect agrowing connected bright region due to flames or hotspots. Differenttypes of pixel connectivity, such as the 4-pixel connectivity, 8-pixelconnectivity and shape-based connectivity, and determining a connectedbright region in connection therewith, are described elsewhere herein inmore detail. The purpose of this technique is to detect and “quantify”the existence and the growing of connected bright regions of arbitraryshapes due to the presence of hotspots and/or flames during the thermalview such as, for example, when all controlled lights are off (i.e. darkview). In one embodiment, hotspots may be defined as very hot objectswith temperatures exceeding a certain threshold (e.g. 350 degreesCelsius). Flames are fire blazes or reflections of fire that may beoriginated by a hotspot (i.e. smoldering fire) or otherwise (e.g. abruptfire formation by a spilled hydrocarbon). The feature described hereincan be used to detect growing (or emerging new) connected brightregions. In particular, this detection technique may be used in anembodiment for early detection of hotspots and flames using a thermal ordark lighting view. Note that the brightness detection threshold thatmay be used in an embodiment with the thermal lighting view may berelatively low in comparison to thresholds for smoke detection since thestarting point is a dark view (i.e. no bright region). An embodiment mayselect a brightness threshold in accordance with, for example, theparticular camera, lense(s), and filter(s). For example, one embodimentmay use a threshold of 30 grey levels to be above the ambient cameranoise and also allow for a certain margin as the camera performancedeteriorates over time. The reference may be used as a starting pointfor the threshold and then lowered several grey levels in accordancewith the foregoing camera deterioration over time. The number ofnon-isolated pixels, as defined above, may be monitored over time fromone frame to another.

Referring now to FIG. 60, shown is a flowchart 4900 of steps of oneembodiment for hotspot detection by detecting growing connected brightregions in accordance with the monitored size of the connected brightregion for multiple frames over time. It should be noted that, asdescribed elsewhere herein, the hotspot detection indicator produced asan output of the processing steps of 4900 may be used in many differentarrangements in an embodiment. The hotspot indicator output of step 4918may be used, for example, as a single input or may be combined withother indicator results, such as using data fusion, to produce a systemflame indicator and/or fire condition indicator. The hotspot indicatormay be used as a verification for a conventional or other fire detectionsystem.

At step 4902, an increase or growth threshold and a brightness thresholdare determined. In one embodiment, these values may be determinedoff-line prior to running the hotspot detection techniques as may beincluded, for example, in a fire detection system. In one embodiment,the increase or growth threshold may be characterized as a thresholdvalue representing a difference of a number of pixels in a connectedbright region determined with respect to two different frames atdifferent points in time. In other words, the number of pixels in aconnected bright region is determined at a first point in time and againat a second point in time. The difference between the number of pixelsat each point in time may be determined and compared in subsequentprocessing steps to the growth or increase threshold. An embodiment mayuse a different technique in computing the difference. An embodiment mayalso determine a pixel by pixel difference and compute the feature valueof the difference image. An embodiment may also compute the absolutevalue, or other operator such as minimum or maximum, of the framedifference before computing the number of bright and connected pixels.When the difference is above the increase threshold, a hotspot indicatoroutput is set. In one embodiment, the brightness threshold represents apixel intensity threshold level used in determining a minimum level ofpixel intensity for inclusion in a connected bright region. As describedelsewhere herein, the associated growth of a detected region may bedetermined using one or more different features based on the number ofpixels for a connected bright region at different points in time.

It should be noted that although step 4902 may be performed off-line inan embodiment prior utilizing the hotspot detection techniques describedherein for real-time fire/smoke detection, an embodiment may alsoperform this step 4902 at other times. An embodiment may use empiricaltesting and general know how to determine step 4902 values in accordancewith different testing conditions in each embodiment. Differenttechniques and considerations that may be used in connection determiningthese and other threshold values are described elsewhere herein in moredetail. It should be noted that an embodiment may determine the increaseor growth threshold used in accordance with experimental data and/orcamera properties.

Steps subsequent to step 4902 may be performed when the techniquesdescribed herein are used in data gathering and analysis for hotspotdetection.

At step 4904, a first set of image data is obtained for analysis. Atstep 4906, the connected bright region is determined for the first setof image data. This is described in more detail elsewhere herein. Atstep 4908, a determination is made as to whether processing using thetechniques of flowchart 4900 is complete. If so, processing stops.Otherwise, control proceeds to step 4910 to obtain another current setof image data for which a connected bright region is determined at step4912.

At step 4914, region growth is determined. In one embodiment, this maybe determined as the difference of the number of pixels in a connectedbright region as determined at two different points in time. Otherparameters that may be used in an embodiment to determine region growthare described elsewhere herein. At step 4916, a determination is made asto whether the region growth is greater than the increase or growththreshold as may be determined, for example, at step 4902. If so,control proceeds to step 4918 where a hotspot indicator may be set as anoutput. Otherwise, control proceeds to step 4918 where a determinationis made as to whether processing is complete. If not, processingcontinues with the next set of image data.

Using the foregoing processing steps of flowchart 4900, the featureregion increase may be used in hotspot detection. This feature uses thenumber of pixels in a connected bright region determined for differentframes at different points in time. As will be described elsewhereherein, other features may use the number of pixels in a connected andbright region for one or more frames. Additionally, an embodiment mayalso use different criteria for determining whether a pixel is to beincluded in the connected and bright region for a frame as alsodescribed herein.

In one embodiment, a function may be used to determine the number ofbright and connected pixels associated with a first set of image data.It should be noted that an embodiment may use, for example, an entireframe of image data or a portion of a frame in determining the number ofbright and connected pixels. An embodiment may compare the same testregions for different frames. In one embodiment, a function forcomputing the number of “bright and connected” pixels may have thefollowing interface definition:

GrowingRegion(TestRegion, Brightness Threshold, Connectivity,MinimumNeighboringPixels)

An embodiment of the above-referenced function may include code forimplementing the processing steps for determining a connected brightregion as described in connection with, for example, processing step4906 of flowchart 4900. It should be noted that the input parameters tothe GrowingRegion function are similar to those as described herein forthe ShinkingRegion function. Aspects of the GrowingRegion function maybe characterized as similar to the ShrinkingRegion function in that bothdetect, for an input frame or portion thereof, a connected brightregion. However, the GrowingRegion function may be used in the detectionof connected bright regions that increase in size. Both functions mayuse similar techniques in determining a connected bright region for aframe, or portion thereof. However, the criteria for determining whethera pixel is included in a connected bright region being determined mayvary in accordance with whether a shrinking or growing region is beingdetermined, and may also vary in accordance with each embodiment. Forexample, both routines may use input parameters having a similardescription and produce an output that is the number of pixelsdetermined as being included in a connected bright region. However, anembodiment of ShrinkingRegion may use different criteria thanGrowingRegion for determining whether a pixel is “bright and connected”for inclusion in the region. This is described elsewhere herein in moredetail.

In one embodiment of the GrowingRegion function as used, for example, instep 4906 processing, a pixel may be included in the connected brightregion if the pixel is above the specified BrightnessThreshold andconnected to at least the MinimumNeighboringPixels in accordance withthe pixel arrangement as specified by the Connectivity parameter. Thisis described elsewhere herein in more detail for example, in connectionwith FIGS. 44 and 45.

It should be noted that an embodiment may select an entire frame, or aportion thereof, as the testregion. An embodiment may select a portionof a frame, for example, due to redundant area coverage by multiplecameras.

What will now be described are more detailed processing steps ofdetermining the brightness threshold of step 4902 in one particularembodiment. As described elsewhere herein, the brightness threshold maybe determined offline, for example, prior to using the techniquesdescribed herein as part of a fire detection system. An embodiment maythen use this brightness threshold, such as the function input parameterfor GrowingRegion, in determining whether a pixel may be considered as“bright” for inclusion in a connected bright region for hotspotdetection.

An embodiment may perform the task of determining a brightness thresholdoffline, for example, by examining the histogram of one or severalframes taken at a thermal (i.e. dark) view with a test condition offlame presence. For example, in one embodiment, it was found that a graylevel between 75 to 100 may be an acceptable brightness threshold valuefor hotspot/flame detection. However, to reduce sensitivity to noise andother uncertainties, an embodiment may use a higher brightnessthreshold, for example, of 100, to avoid any agglomeration of “nonbright” regions. The particulars in selection of a brightness thresholdmay vary with system criteria, such as tolerance for false positives andthe like, and also the particular hardware, such as the camera andlighting used, and data gathering environment. The brightness thresholdmay be determined, for example, using black body experiments wherecamera sensitivity (e.g., mean frame intensity) versus temperature isestablished. If, for instance, a temperature of 350 degrees Celciusmeans that 4 (or more) pixels are above 50 gray levels, then suchthreshold should be set in the vicinity of 50.

Referring now to FIG. 61, shown is a flowchart 4950 of processing stepsof one embodiment for determining the brightness threshold offline. Atstep 4952, a histogram for an image of a fire or flame with a dark orthermal lighting view is obtained. This may include, for example,obtaining an image using test conditions which include a thermal or darklighting view scenario. Recall that, as described elsewhere herein, athermal or dark lighting view is one in which there are no controlledlight sources switched on in the image viewing area, such as the cargobay. A histogram illustrating the pixel grey level distribution and thenumber of pixels having each particular grey level may be determined foreach image. It should also be noted that one or more histograms andcorresponding images may be used in determining this threshold inaccordance with the particular conditions of each fire detection system,or other system, and environment in which the hotspot detectiontechniques described herein may be used.

At step 4954, one or more brightness ranges are identified in accordancewith the histograms from step 4952. In other words, different bands ofbrightness levels may be determined by examining the one or morehistograms. Different bands of brightness levels detected may beassociated with one or more conditions known in a particularenvironment. For example, in an environment with a particular knownlevel of “noise”, a first brightness band may be detected with pixels ofa relatively low grey level value. In selecting the brightnessthreshold, it may be determined that the brightness threshold in anembodiment should be greater than the maximum grey level associated withthe first brightness band as described above.

A second brightness band having a minimum greater than the maximum ofthe first band may also be detected in a histogram. It may be determinedthat this second band represents pixel values associated with hotspotsor flames. One or more values of this second band may be used in alsodetermining a brightness threshold. For example, an embodiment may usethe minimum value of this second band as a brightness threshold. Anembodiment may also use the minimum value of this second band inconjunction with the maximum value of the first “noise” band todetermine the brightness threshold. The particular brightness thresholdused may vary in accordance with the particular criteria of eachembodiment. Such criteria, as also described elsewhere herein in moredetail, may include, for example, the tolerance for false positives, howquickly or early a determination for hot spot detection is desired, andthe like. For example, in one embodiment, there may be a high tolerancefor false positives and a desire for an early detection of hotspots. Inthis instance, a brightness threshold at or closer to the maximum of thefirst band may be used.

What will now be described is an illustration of how the foregoingtechniques may be used in determining a brightness threshold for agrowing region in hotspot detection.

Referring now to FIG. 62, shown is an image obtained using a thermal ordark lighting view in test conditions with a TF5 fire. As describedelsewhere herein, TF5 is a fire classification included in the EuropeanBSI Standard entitled EN-54 Fire Detection and Fire Alarm Systems. Anembodiment may use this or other test conditions in determining abrightness threshold. In the test conditions of the offline processingto determine the brightness threshold for this example, the conditionsalso replicate the cargo bay area with a gap located at the top in whichthe bay is full of cargo. Other embodiments may use other environmentconditions.

Referring now to FIG. 63, shown are histograms 4990 of grey scale valuesin accordance with the image obtained from FIG. 62. The histograms of4990 reflect values associated with the upper half of a frame 4980 takenat a dark view. The upper half of the frame may be analyzed as the testregion of interest in this example since the region of interest is thetop portion or gap of the cargo bay area that is full of cargo. Each ofthe histograms 4992 and 4994 display the pixel gray levels (X-Axis) andthe number of pixels having this particular grey level (Y-Axis). Itshould be noted that in the foregoing histogram 4992, a majority ofpixels are in the region between 20 and 40 grey levels. This may bedetected as a first band of grey levels corresponding to, for example,the grey levels of image “noise”. Histogram 4994 is a zoom of a portionof the histogram 4992. In particular, the histogram 4994 illustrates azoom view of the region in the 100-200 gray levels from 4992. Inaccordance with the regions detected herein, an embodiment may select abrightness threshold of 100 due to the relative “high agglomeration” ofpixels around the band of 130-150 gray levels, the criteria of theembodiment to detect all hotspots early and with a goal of minimizingthe number of false positives. It should be noted that this thresholdvalue may vary with each embodiment and characteristics thereof. Forexample, the threshold may be determined in accordance with thehardware, such as camera type, in an embodiment and also by the desiredtradeoff to be established between early detection and robustness tonoise.

In test runs of one embodiment of TF5 fire (e.g. scenario 2), thetechniques described herein for hotspot detection provided for detectionof hotspots only a few seconds after the ignition. It should be notedthat these results were established in one embodiment using a localanalysis technique in which the test region is the entire framemonitored at different points in time. The foregoing embodiment did notutilize any techniques for further reducing the number of pixelsprocessed in the test region. For example, this embodiment used allpixels in the test region rather than, for example, using only everyother pixel of a test region horizontally and/or vertically, asdescribed elsewhere herein. However, it should be noted that anembodiment may use the hotspot detection techniques described herein inprocessing in which the test region is the entire frame, or a portionthereof, and includes processing all the pixels in the test region or aportion of the pixels as described elsewhere herein. Other variationsmay also be used in accordance with techniques known to those in the artand in accordance with each embodiment.

Referring now to FIG. 64A, shown is a graphical illustration 5000 of thefeature of the number of bright and connected pixels included in aconnected bright region using the techniques described herein with thethermal lighting view for one set of conditions for a TF5 fire. Thevertical dashed line 5002 indicates the detection time of a fire asdetermined using one particular conventional smoke/fire detector. Theforegoing illustrates that the number of bright and connected pixelsincluded in a connected bright region increases over time, for example,as when examining a trend of the number of pixels in the region atvarious points in time.

Other feature variations may be used in determining a relative changefor hot spot detection in connection with processing steps of 4900 ofFIG. 60. For example, the following:

$\frac{{{{FeatureValue}(t)} - {{FeatureValue}(0)}}}{{FeatureValue}(0)}$where FeatureValue(t) stands for the value of the feature at time t, andFeatureValue(0) stands for the value of the feature at time 0, or of areference frame. Examples of such features include, without limitation,the number of bright and connected pixels, the mean pixel intensity,pixel intensity standard deviation, or gradient mean and standarddeviations. For example, an embodiment may determine the number ofbright and connected pixels in a connected brightness region. At step4914, an embodiment may use the foregoing absolute difference of featurevalues over the feature value of the reference frame in determining arelative change at step 4916.

The foregoing approach of a “relative” comparison to the reference maybe preferably used in an embodiment for early detection and robustnesswith respect to mounting and hardware tolerances as to various cargo bayconfigurations

Another variation of the “relative” change that may also be used in anembodiment may be represented as:

$\frac{{FeatureValue}(t)}{{FeatureValue}(0)},\frac{\left( {{{FeatureValue}(t)} - {{FeatureValue}(0)}} \right)^{2}}{{FeatureValue}(0)}$

It should be noted that an embodiment may determine and detect a“growing region” in connection with other lighting views, such as theoverhead view because of light scattering. However, the thermal view maybe the preferred view used in an embodiment. An embodiment, however, mayprefer to use frames with the thermal or darkened view rather than theoverhead view since the thermal view may provide for earlier detection.

It should be noted that in instances when fires are closely locatedunder the overhead light in connection with the overhead lighting view,the number of pixels in the connected bright region may be best forearly detection with cross confirmation of detection using additionaldifferent lighting views.

As described herein, an embodiment may use the hotspot detectiontechniques with a test region corresponding to all or a portion of eachframe. Additionally, an embodiment using the hotspot detectiontechniques described herein may also consider additional criteria inselecting one or more thresholds and other processing steps in order tominimize adverse effects, for example, due to the existence ofbackground noise, illumination irregularities, temperature variation,aging effects of cameras, vibration, and the like.

In accordance with techniques described herein, an embodiment maydetermine small and consistent clusters of similar pixel grey levels atan early stage of formation using the connected bright region. Asdescribed herein, the connection premise is based on both pixel locationand intensity or brightness. Detection of hotspots, flames, reflections,and the like may be performed using the techniques described herein withthe “thermal view” when all controlled lights are turned off.

As described in more detail in following paragraphs, an embodiment mayalso have an additional time-based connectivity criteria imposed onclustering pixels. In other words, before a given pixel is classified asbeing included in a connected bright region as determined for aparticular frame, an embodiment may also determine whether the givenpixel exhibits one or more similar properties for one or more previousframes. For example, before a pixel is classified as being included inthe connected bright region for a frame at time “n”, the same pixelshould be included in the connected bright region for one or moreframes, or portions thereof, at one or more times prior to “n”.

Referring now to FIG. 64B, shown is an illustration 5004 of the pixelsincluded in a connected bright region determined for different framesprocessed at different points in time (t0, tk−2 . . . tk). The pixelsincluded in the connected bright regions 5002 a-5002 c determined atdifferent points in time are indicated by shading.

As described elsewhere herein, an embodiment may set the hotspotbrightness threshold relatively low in comparison, for example, tothresholds for smoke detection, since the dark or thermal view may, forexample, be characterized as immune from the presence of light sourcesand vibration effects. An embodiment may monitor the percentage ofpixels included in a connected bright region with respect to the totalnumber of pixels in each frame, or test region, for hotspot/flamedetection.

It should be noted that an embodiment may use a reference framedetermined at a time, such as t=0, with the thermal view. This referenceframe may be used, for example, to filter out other known of fixedsources of light, thermal energy, and the like. The reference frame, orportion thereof, may be, for example, subtracted from a frame, orportion thereof, at a later point in time prior to processing fordetermining a connected bright region.

In one embodiment using a Sony camera with an NIR filter centered around880 nm, a gray level between 50 and 100 may be used a brightnessthreshold for hotspot/flame detection. An embodiment may select this oranother brightness threshold in accordance with black body experimentsthat set the camera/lens physical limitations in detecting hot spotsusing a thermal view by examining one or more histograms as describedelsewhere herein. In other words, as described elsewhere herein, thebrightness threshold may be determined, for example, using empiricalanalysis and in accordance with the particular hardware, such as cameratype. It should be noted that the brightness threshold in thisembodiment being coupled with the added condition that pixels also beconnected may allow an embodiment to use a lower brightness thresholdthan, for example, in an embodiment using hotspot detection without anyconnectedness criteria.

For example, an embodiment may run experiments using a blackbody at adistance of 10 meters from the camera at 350 degrees Celsius indetermining a brightness threshold with a thermal view. Particularconditions used may be determined based on camera limitations and lensor filter limitations. Using a hotspot detection technique withoutconnectivity, an embodiment may use a first threshold of 78 gray level.For use with the techniques described herein for hotspot detection withthe connected bright region described herein, a lower threshold, such as60 gray level, may be used as the brightness threshold. The embodimentmay also determine, for example, by examining histograms obtained usinga thermal view, that in the presence of no flames or reflection, a“cold” pixel intensity of around 23 gray level may be determined. Itshould be noted that an embodiment may use techniques as describedherein in determining a starting brightness threshold value that may beadjusted in accordance with other testing or modifications in accordancewith each embodiment.

An embodiment may use a connectivity-based feature that may be referredto herein as the percentage of “hotspot coverage” which may be definedas the ratio of pixels included in a connected bright region for a frameover the total number of pixels (i.e. 640*480=307200 pixels). In oneembodiment, as described elsewhere herein, a pixel may be considered asincluded in a connected bright region if its intensity exceeds a certainthreshold and so do a number of its neighboring pixels (both in spaceplan and in time axis) using the techniques described herein. In otherwords, an embodiment of the GrowingRegion function may determine a pixelas included in the connected bright region for a frame, or portionthereof, based on a brightness threshold or intensity, a minimum numberof neighboring pixels, 4 or 8 pixel connectivity, and a timeconnectivity parameter of K specifying whether the pixel has beenincluded in K or more previous connected bright regions associated withother frames determined at different points in time, K being greaterthan or equal to zero (0). The last criteria, K, may also be specifiedas an additional function parameter in an embodiment.

Following are some selection criteria that may be used in an embodimentin determining values used in connection with the techniques describedherein. However, it should be noted that an embodiment may use differentvalues in accordance with the particular types of fires and conditionsin each test environment. The time connectivity parameter (K) is in somesense a parameter of non-linear filtering. A given pixel is categorizedas being included in a connected bright region only if it is labeled assuch for the previous K consecutive frames. An embodiment may select aparticular value of K in accordance with the storage requirements andcapacity of a particular embodiment. In an embodiment using K>0, pixelvalues for each frame, or portion thereof, being maintained for K framesneed to be stored in memory to insure time-connectivity. For example, ifa time-connectivity parameter of 3 is imposed, an embodiment maymaintain pixel values, or indicators as to whether each pixel isincluded in the connected bright region for a frame, for the previous 3frames to check detection continuity.

The hotspot coverage feature, expressed in percentage, as may be used inan embodiment may be computed using the following equation:

${{HotSpot}\mspace{14mu}{{Coverage}\left( t_{k} \right)}} = {\frac{100}{\left( {\left( {\frac{M}{2} - 1} \right) \times \left( {\frac{N}{2} - 1} \right)} \right)} \times {\sum\limits_{m = 1}^{({\frac{M}{2} - 1})}\;{\sum\limits_{n = 1}^{({\frac{N}{2} - 1})}\;\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}\;{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\;\left( {{P\left( {{i.j};t_{k}} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}}}}$In the foregoing:

(M,N) designates the frame dimensions (i.e. 640×480);

H₀ is the hotspot threshold (e.g. 60 gray levels); and

C₀ is the clustering threshold or minimum number of neighboring pixels(i.e. 7 pixels) based on a selected connectivity type, such as the8-pixel connectivity type. A time connectivity of order K applied to apixel p of coordinates (i,j) means that:

${{\left\{ {\left\lbrack {\sum\limits_{i = {({{2m} - 1})}}^{i = {({{2m} + 1})}}\;{\sum\limits_{j = {({{2n} - 1})}}^{j = {({{2n} + 1})}}\;\left( {{P\left( {{i.j};t} \right)} > H_{0}} \right)}} \right\rbrack > C_{0}} \right\}\mspace{14mu}{for}\mspace{14mu} t} = t_{k}},t_{k - 1},\ldots\mspace{11mu},t_{k - K}$

An embodiment may use the foregoing hotspot coverage metric indetermining growth of a connected bright region. An embodiment maydetermine this metric for each frame and compare the metric value of aframe to a hotspot coverage threshold, such as, for example 1%. When themetric value meets or exceeds this hotspot coverage threshold, a hotspotmay be detected. The hotspot coverage threshold may be determined aswhat percentage of the pixels of a frame, or portion thereof, beinganalyzed may indicate a threshold presence of a hotspot as an indicatorof a fire condition.

It should be noted that an embodiment may use the foregoing techniquesapplied to a set of pixels after detection of a first or preliminarycondition. For example, an embodiment may first make a determinationthat a global or frame intensity threshold is met prior to performingthe foregoing on a portion of a frame at the pixel level. For example,if the mean frame intensity does not exceed a certain global thresholdthen, there is no need to perform the foregoing computation at the pixellevel for the frame, or portion thereof. An embodiment may also performprocessing such that, once a hotspot is detected using the foregoingtechniques, the foregoing techniques for hotspot detection may then beperformed for subsequent frames without requiring the occurrence of thefirst or preliminary condition.

In selecting the minimum number of neighboring pixels, an embodiment maydesire to select a value large enough in accordance with, for example,aging effects, vibration, and temperature variability such that theseconditions do not lead to misleading results. An embodiment may select,for example, 7 or 8 as the minimum number of neighbors when using an8-pixel connectivity to insure that pixels of interest are fullyconnected and non-isolated.

It should be noted that an embodiment using the hotspot coverage featureand other described herein may have a higher sensitivity to thebrightness threshold than other parameters and values selected, such as,for example, the minimum number of neighboring pixels. As describedelsewhere herein, the brightness threshold is hardware-dependent and anembodiment may preferably select this in accordance with criteria andspecifications of the production camera/lens/light source combinationsto set the optimal threshold for an embodiment.

It should be noted that in an embodiment using the foregoing techniquesin connection with the thermal lighting view, the foregoing techniquesmay be used without a reference frame to account for initial cargo bayview. In one embodiment, the thermal lighting view may be completelydark except for NIR sources that should not emit any radiations duringthermal view acquisition. The absence of a frame of reference for thisanalysis makes the technique less sensitive to vibration.

To minimize the processing time using the hotspot coverage featuredescribed herein, an embodiment may selectively implement the foregoingconnectivity equations taking various arithmetic considerations intoaccount such as, for example, constants at each loop iteration. Forexample, a first portion of the hotspot coverage equation of

$\frac{100}{\left( {\left( {\frac{M}{2} - 1} \right) \times \left( {\frac{N}{2} - 1} \right)} \right)}$forms a constant that may be calculated once for the entire processingrather than, for example, for each and every iteration. Additionally, anembodiment may use the foregoing features described herein to processevery predetermined number of frames or pixels within a frame, duringparticular times, subsequent to detection of a first or preliminarycondition, and a combination of any of the foregoing.

As described herein, the dark or thermal view may be used with detectiontechniques described herein. Use of this particular view may bepreferable over other views in some embodiments in connection withdifferent types of fire conditions that may occur in an embodiment, suchas, for example, TF2 fire conditions. For example, an embodiment may usea less stringent condition on the hotspot coverage percentage for earlydetection with a thermal view than in connection with other views. Anembodiment may also use the foregoing hotspot detection techniques withless stringent conditions for the hotspot coverage percentage whencoupled with results from other smoke detection techniques using otherilluminated views. For example, rather than have use a hotspot coveragepercentage threshold of 1%, when coupled with other smoke detectiontechniques, a hotspot coverage percentage threshold of 0.02% may be usedin an embodiment.

One embodiment of the foregoing technique based on both time and spaceof pixel connectivity may be used in detection of hotspots and/or flamesat early stages, such as prior to detection by a conventional smokedetection system, while being less sensitive to vibration and noise. Anembodiment may also use lower detection thresholds in combination withsmoke indication via other illuminated views for detection of particularfire conditions, for more reliable detection, and the like, such as, forexample, in connection with early detection of TF2 fires. An embodimentmay use the foregoing techniques with the thermal lighting view.

Referring now to FIG. 65, shown is a flowchart 5100 of steps of oneembodiment for hotspot detection using the techniques described herein.The processing steps of flowchart 5100 summarize processing steps thatmay be performed in an embodiment as described above. At step 5101, adetermination is made as to whether are any data sets, such as frames orportions thereof, for processing. If not, processing stops. Otherwise,control proceeds to step 5104 where a global parameter value isdetermined for the current set of data. The global parameter value maybe, for example, a characteristic about an entire frame of data, such asmean frame intensity, as described elsewhere herein. Other metricscharacteristic of the entire frame may also be used. It is determined atstep 5106 whether the global parameter value for the current set exceedsa particular global threshold. For example, the global threshold for themean frame intensity may be determined heuristically based on empiricalanalysis. An embodiment may also use other techniques, such as a neuralnetwork that sets a global threshold, for example, to minimize the meansquare error between actual and predicted values. Other techniques maybe used in an embodiment. If the global threshold is not exceeded,control proceeds to step 5101. Otherwise, control proceeds to step 5108to determine the hotspot coverage feature for the current set of datausing the entire frame, or a portion thereof. At step 5110, it isdetermined if the hotspot coverage exceeds the hotspot coveragethreshold. In one embodiment, this may be determined as 1% using thehotspot coverage equation described elsewhere herein. This value mayvary in accordance with each embodiment. If the hotspot coveragethreshold is not exceeded, control proceeds to step 5101. Otherwise,control proceeds to step 5112 to set a hotspot detection indicator. Itshould be noted that this indicator may be produced as an output ofhotspot processing and may be used in connection with one or more otherinputs in producing a fire detection signal for the system. Theindicator at step 5112 may be set to high, for example, for apredetermined amount of time, such as in processing the current frame.Subsequently, the indicator may automatically reset to off indicating nohotspot when processing of the next cycle, frame, and the like, begins.Control proceeds to step 5114 where a determination is made as towhether processing is complete.

If so, processing stops. Otherwise, control proceeds to step 5116 wherethe next data set is obtained for the next frame and the hotspotcoverage feature is determined. At step 5118, it is determined if thehotspot coverage feature exceeds the hotspot coverage threshold. If not,control proceeds to step 5114. Otherwise, processing proceeds to step5120 to set the hotspot detection indicator.

The foregoing processing of 5100 illustrates and embodiment in which thehotspot coverage feature is determined for a frame, or portion thereof,only if a first or preliminary condition is met. In this example, it isa global characteristic threshold. Once the first condition is true, thehotspot detection is performed. Additionally, once an initial hotspothas been detected using one of the techniques described herein, thehotspot coverage feature is determined for subsequent data sets.

In the foregoing processing of 5100, the hotspot detection indicator maybe set multiple times in connection with each one or more framesprocessed. This may be used as an input for a particular cycle inconnection with timing for particular hardware and/or softwarecomponents evaluating whether there is a fire, smoke and the like, for apredetermined time period.

It should also be noted that an embodiment may choose to set a hotspotindicator once and have the indicator remain high rather than reset forsubsequently processed frames. For example, an embodiment may perform atrend analysis and set the indicator once a pattern is observed for apredetermined number of frames.

Referring now to FIG. 66, shown is an example of two representations5140 of how the hotspot indicator may be used in connection with othersystem components. The processing and techniques described herein may beembodied in software and/or hardware for processing data signals inputto the hotspot processing. As an output, the hotspot processing mayoutput a hotspot indicator. In 5142, this hotspot indicator may be oneof other inputs used in connection with data fusion processing to outputa system level fire detection signal. In 5144, a first processing mayoutput a first processing signal A, such as described in connection withflowchart 5100 processing. The hotspot processing may only be performedwhen the output A is set. The hotspot indicator may then be used as aninput to data fusion processing to produce the system level firedetection signal. Other arrangements may be used in an embodiment inconnection with the forgoing techniques described herein. In theforegoing arrangements, the hotspot indicator may be set on high, withor without a reset, and used as an input for processing into data fusionprocessing.

What will now be described are techniques that may be used in connectionwith dust mitigation for the purpose of smoke detection, for example, incargo bays using video images.

The techniques described in following paragraphs may be used in anembodiment of a system, such as the system of FIG. 1 and its variationsdescribed herein, for detection and verification of fire in aircraftcargo bay. The techniques described in following paragraphs may be usedto provide the aircrew with images of the cargo bay and its conditions,and to detect fire and selected non-fire conditions before theconventional smoke detection system. In one embodiment, the system'sprimary detection may be characterized as video based. Criteria of thesystem in this embodiment may include that it must detect fire andnon-fire events significantly faster than the traditional system. Onesuch fire condition is smoke. Other embodiments may have differentperformance criteria.

While fog may be characterized as a non-fire condition that causes falsealarms in the traditional smoke detection system, feathers (or othersizable airborne morsels) and dust may also cause false alarms.

Smoke includes water vapor and both oxidized and un-oxidized particlesthat may cause a problem in distinguishing fire conditions from non-fireconditions.

What will now be described are techniques that may be used to mitigatethe obscuration effect caused by dust in a cargo bay environment basedon video data. The techniques described herein may be used in anembodiment that properly confirms all smoke/fire conditions while alsoproperly classifying as many non-smoke/fire conditions as possible. Inother words, as described herein, an embodiment may operate inaccordance with one or more performance criteria that include, forexample, proper classification of all fire cases while also minimizingthe number of non-fire cases improperly classified. It should be notedthat the techniques described herein may be used in connection withdetecting different types of fire and dust conditions. Described hereinare a combination of thresholds and conditions that may be used in anembodiment such that the system using the techniques described hereinmay properly classify and detect a portion of the dust cases whileproperly classifying all fire cases. Dust cases that do not reach thespecified thresholds are properly classified as a non-fire conditionwhile all fire cases exceed the thresholds.

An embodiment may use the techniques described herein to analyze videodata with the focus on setting detection thresholds that allow some dustcases to be properly classified, while properly confirming smoke-relatedcases in all instances. One problem in discriminating dust from smoke isthe similarity of particles that may appear in the event of a smokecondition and also for dust. Because of this, complete discrimination ofsmoke from dust may not be a plausible objective or performancecriterion. Rather, the techniques described herein may be used inconnection with raising the detection bar to properly classify as high apercentage of dust cases as possible, while allowing for some extremedust cases to be misclassified as smoke (i.e. fire). On the other hand,all fire cases, in which smoke is present, should always be detected andclassified as such. As described in following paragraphs, it may also bedesirable to identify different dust types and conditions differsignificantly from all smoke cases, and which are too similar to smokeconditions to be classified properly. This may be used in an embodimentto identify a set of one or more dust conditions that may be properlyclassified before flagging a smoke condition used to indicate thepresence of a fire. The foregoing may be used to define criteria andqualification test conditions. Described in following paragraphs are twodifferent technical approaches to assess the system performance inconnection with dust detection and discrimination.

A first approach may be characterized as using frame intensity-basedthresholding in which a thresholding baseline for detection is selectedso that the system properly classifies some dust scenarios as non-smokerelated without missing any smoke conditions. It should be noted thatthe techniques described herein may not discriminate between dust andsmoke in all instances. Rather, the selection of thresholds may bedetermined such that the detection thresholds properly classify somedust cases that do not reach the detection thresholds while allowing allsmoke conditions to exceed those thresholds.

The average absolute gray level intensity, as described in more detailin following paragraphs, may be used in an embodiment for detection of aportion of dust cases while also allowing for proper classification ofall fire conditions. This approach provides a minimum performance levelthat the system is anticipated to reach. An embodiment may also use anyone or more factors in connection with determining detection thresholds.For example, an embodiment may use conditions particular to anembodiment such as those based on vibration levels. An embodiment mayalso use heuristics in adjusting feature values and/or associatethresholds for better performance, as well as general know-how gainedthrough experience and as may be obtained through empirical testingand/or simulation. It should be noted that an embodiment may use theaverage absolute gray level with one or more other thresholds associatedwith other features, as described elsewhere herein, for additionalflexibility in order to maximize the number of dust cases to be properlydismissed by the system while confirming all smoke cases. The additionalfeatures may include, for example, the maximum pixel intensity, size ofbright areas, connected bright regions, and the like.

The average absolute gray level intensity is a feature that may bedetermined for a frame, or a portion thereof of interest by subtractinga background or reference image. The background or reference frame maybe determined, for example, offline prior to gathering and analyzingvideo data. The reference frame may be represented, for example, at atime t=0. A different reference frame may be determined and used foreach lighting scenario or view used in an embodiment. The referenceframe may also be a fixed frame other than one obtained, for example,prior to flight or gathering data in real-time. The reference frame forone or more views may be updated or changed as the conditions in anenvironment may change. In connection with the techniques describedherein, it should be noted that all or portion of a frame may beanalyzed. In one embodiment, a portion of a frame analyzed may bedetermined in accordance with different lighting views in accordancewith the physical location of the particular lights included in anembodiment as well as the location of the area under analysis, such asthe location of the gap space above a cargo bay area. Using a portion ofa frame may provide for a localized analysis in an embodiment.

The average absolute gray level intensity may be determined for theframe of interest, or portion thereof, as may be designated using alocal mask. The average absolute gray level may be represented as:

$\begin{matrix}{{\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}} & {{EQUATION}\mspace{14mu}{DM1}}\end{matrix}$where:

P(i, j; t) is the pixel value within a frame at location (i,j) and timet;

P_(Ref)(i, j; t₀) is the pixel value at location (i,j) of the referenceor background frame at time 0; and

N_(m) and M_(m) are the local mask (that could be around entire frame)dimensions.

In one embodiment, the pixel value is defined as the pixel intensitylevel, such as a gray level between 0 (black) and 255 (white), for theframe of interest at the designated pixel coordinates (i,j) and time(t). The pixel value range may depend on characteristics of imageacquisition hardware and/or software. For example, if a 16-bit intensitydepth is used, the range may be from 0 (black) to 65535 (white).

Note that applying the absolute value at the pixel-difference ofinterest as indicated in EQUATION DM1 may be used to account for anychange in the image intensity whether such change is positive ornegative. This may be used to compensate for instances where changes inthe frame intensity may not be reflected in the average frame intensityvalue. This may occur, for example, when the frame exhibits an intensityincrease in one part and an intensity decrease in another part. This isthe case, for instance, where both phenomena of light scattering (i.e.increasing intensity) and dimming (i.e. decreasing intensity) areobserved at the diagonal view, or the case of smoke moving or fireflickering in the pilot view. The goal of using this technique in oneembodiment is to set a thresholding baseline for detection so that thesystem properly confirms some dust scenarios without missing anysmoke-related occurrences. In one embodiment, the cameras used mayreceive NIR light. An embodiment may use any one or more particulararrangements of lighting, cameras, and the like. For example, oneembodiment may use the arrangements, types, and variations thereof asalso described herein, with reference to FIG. 1. Another arrangement oflighting and cameras that may be used in obtaining one or more datavalues is illustrated in FIG. 67. The techniques described herein may beperformed in hardware and/or software of the system of FIG. 1 using thearrangement of FIG. 1, the arrangement of FIG. 67, or a variationthereof.

For all cameras used in an embodiment, each camera may provide videodata sampled at different points in time at one or more sampling ratesfor each of four different views of a scene: the thermal view (i.e. alllights off), pilot view (i.e. own camera light on), overhead view (i.e.only overhead heads lights on), and diagonal view or opposite view (i.e.opposite camera light on). All of these views are described elsewhereherein in more detail. It should be noted that an embodiment may notprocess data from the thermal view in connection with dust mitigationtechniques described herein. It should be noted that an embodiment mayprefer to obtain video data at a sampling rate, for example, of 1 frameper second. Although any sampling rate may be used in an embodiment, itmay be preferred to use as a high sampling rate as possible. Thepreferred sampling rate may vary in accordance with each embodiment.

It should be noted that any one of a variety of different techniques maybe used in connection with determining a threshold value for theforegoing feature of EQUATION DM1 and other features described herein.What will now be described is one way in which an embodiment maydetermine a threshold value using detection modes with differentassociated thresholds.

In one embodiment, various detection modes may be defined. Test runs maybe performed and evaluated using the various thresholds associated witheach detection mode in accordance with system criteria. This is onetechnique that an embodiment may use in determining appropriatethresholds to use. An embodiment may also choose to readjust thresholdvalues and other system parameters at run time during data acquisition,use and evaluate previously collected data, use general know-how, andthe like, in establishing threshold values.

In one embodiment, detection of a fire condition may be declared if atleast one of the cameras, via at least one of its 3 various views(excluding the dark or thermal view), exhibits an increase in theaverage absolute gray level of EQUATION DM1 that exceeds a giventhreshold for a given period of time. In such case, detected incidentsare flagged as smoke conditions as may be related to fire events. Anembodiment may also further use other techniques described herein toadditionally distinguish that a confirmed fire condition produced usingthese techniques is not fog, or another non-fire condition.

A rationale that may be used in an embodiment is to set thresholds interms of noise magnitude caused by vibration. In one embodiment, thesystem may operate in various vibration and background noise levels andsuch values may be used in determining thresholds used in connectionwith the average absolute gray level for fire detection. For example, anembodiment may select a threshold based on a previous analysis oflaboratory vibration data. An average gray level may be selected that isa reasonable level to account for image displacement due to vibration.In general, the level of intensity change due to vibration may depend onthe particular data acquisition hardware and software characteristics,including resolution of intensity, and on vibration levels that thesystem is expected to accommodate. Other embodiments may use otherthresholds with this and other techniques described herein that may bedetermined in accordance with particular conditions of each embodiment.

In determining a threshold value, an embodiment may select a set ofdifferent threshold candidates. Each of the different thresholdcandidates may be associated with a different level of detection. Anembodiment may run test data using these various candidate thresholds inaccordance with one or more performance criteria specified in accordancewith an embodiment to determine which one or more candidate thresholdvalues may be preferred for selected performance criteria. In oneembodiment, four detection modes may be used that are defined inaccordance with a gray level threshold candidate to be held for aspecified number of samples or time period as follows:

-   -   1. Very stringent mode. The detection threshold is set to K1        times the vibration level (where K1 may be, for example 4, and        the threshold may equal, for example, to 12 gray levels) for a        period of at least T1 samples (which may equal, for example, to        20 seconds)    -   2. Stringent mode. The detection threshold is set to K2 times        the vibration level (where K2 may be, for example, 3, and the        threshold may equal, for example, to 9 gray levels) for a period        of at least T2 samples (which may equal, for example, to 15        seconds).    -   3. Moderate mode. The detection threshold is set to K3 times the        vibration level (where K3 may be, for example 2, and the        threshold equal, for example, to 6 gray levels) for a period of        at least T3 samples (which may equal, for example, to 10        seconds).    -   4. Tolerant mode. The detection threshold is set to K4 times the        vibration level (where K4 may be, for example 1, and the        threshold may equal, for example, to 3 gray levels) for a period        of at least T4 samples (which may equal, for example, to 5        seconds).

It should be noted that the foregoing assumes that the vibration level(e.g., the intensity change level due to vibration) is equal to 3 graylevels. However, other embodiments may use different detectionthresholds according to different vibration levels. Note that themultipliers K1 to K4 as well as the vibration level being multiplied maydiffer according to the view being analyzed. That is, different valuesof K1 through K4 may be used for opposite, overhead and pilot views. Anembodiment may also use different numbers of samples T1 through T4 indifferent detection modes, according to image acquisition hardware andsoftware characteristics. Additionally, an embodiment may use more orless than the number of detection modes and associated thresholdsdefined above. In particular, only one of the above detection modes maybe used by an embodiment, based on the performance requirements and theenvironmental conditions. For example, the system may switch between thedifferent detection modes depending on the flight phase. Alternatively,a single mode may be always in effect for the particular embodiment,based on the specific performance requirements for the aircraft inquestion. One embodiment may determine the average absolute gray levelas a feature for each frame of data gathered. This data may be analyzedin accordance with the appropriate threshold for the detection modecurrently in effect and for the view being analyzed. A fire condition isdetected if at least one of the cameras for at least one of the viewsmeets the threshold condition.

In one embodiment, the system's performance for a given detection modemay be measured in accordance with one or more performance criteria. Forexample, in one embodiment, the performance criteria may include thenumber of fire cases successfully detected ahead of a conventional smokedetector, and the number of dust cases properly classified. In oneembodiment, the following performance criteria may be used in order ofpriority, to rank the various detection modes and associated thresholds:permit the proper detection and classification of all fire cases (1^(st)performance criterion), provide for detection of fire cases with as longa lead time as possible prior to detection by the conventional smokedetector, (2^(nd) criterion), properly classify dust conditions, (3^(rd)criterion), and allow a relatively long time with respect to themonitoring period before the feature exceeds a specified threshold dueto dust.

An embodiment may determine, for example, through testing, the systemperformance under a tolerant mode indicates that an embodiment mayselect a detection threshold higher than K4 times the vibration levelthreshold in order for some dust cases to be properly confirmed. Anembodiment may find that improvement of dust performance confirmation ispossible at the expense of decreasing fire detection capability. Thismay vary in accordance with each embodiment and configuration beingmonitored.

In one embodiment using the foregoing moderate mode, the detection baris raised so that some of the dust conditions are properly classifiedwhile all fire cases are timely detected ahead of the onsite smokedetector. Raising the detection bar has the benefit of not setting thefire indicator in cases of few aerosol concentrations (e.g. fog ordust), but also has the downside of delaying smoke/fire detection time.Different types of conditions associated with dust may be detected andproperly classified as a non-fire condition using the thresholds of themoderate mode.

An embodiment may also use thresholds selected in accordance with adefined stringent mode in order to properly classify additional non-firedust conditions. Increasing the threshold provides for properlyclassifying additional dust cases as compared to the moderate andtolerant levels having an increased dust concentration without missingfire related conditions.

At the very stringent mode, fire-related conditions may be missed as aresult of the higher threshold. In accordance with the performancecriteria of one embodiment for which all fire-related conditions shouldbe properly confirmed, the very stringent mode may be unacceptable eventhough the number of dust conditions properly detected increased ascompared to other modes.

One embodiment using the average absolute gray level as defined hereinmay set a thresholding baseline for properly classifying dust conditionswhile not missing any smoke-related fire cases. One purpose of thisapproach in one embodiment may not discriminate dust from smoke, butrather set detection thresholds to provide a minimum performance levelthat the system is expected to reach. It also allows for certainrationale to set the detection thresholds based on vibration levels.Different thresholds may be evaluated in accordance with particularperformance criteria. In one embodiment, for example, using theforegoing four modes may determine that the “stringent” mode, where theaverage intensity threshold is set around 3 times the vibration leveland the multiplier K2 is 3, may be used as an optimal setting in anembodiment to properly detect about 50% of dust scenarios similar tothose conducted using test data as described herein while also properlydetecting all smoke-related (fire) cases at least 30 seconds before theconventional smoke detector.

It should be noted that the foregoing thresholding technique may be usedin an embodiment as described herein regardless of the camera location(Fwd or Aft), lighting scenarios(i.e. pilot, overhead, or diagonal), andregardless of the intensity increasing rate. Other embodiments may usevariations of the values, conditions, criteria, and the like, inaccordance with each embodiment. It should also be noted that theaverage absolute gray level grew steadily and fast in the case of firein contrast to the dust scenarios where values of the average absolutegray level grew at a very slow rate to reach a steady state. Anembodiment may also take this into consideration when selecting thedetection thresholds used. In other words, the average absolute graylevel may be characterized as generally higher in the presence of smokethan dust at a particular point in time.

Additionally, an embodiment may use a rate of change feature based onthe average absolute gray level. The rate of change may be calculated as

$\delta_{\mu} = \frac{{\mu(t)} - {\mu\left( {t - {\Delta\; t}} \right)}}{\Delta\; t}$where μ(t) and μ(t−Δt) are the values of the average absolute intensityfeature at times t and t−Δt, respectively. Values of this feature willbe typically higher in smoke than in dust conditions, particularly in acargo bay environment with no fresh dust sources, where dustconcentration is not likely to rise rapidly, as opposed to fireconditions, where smoke concentration rapidly increases due tocombustion.

It should be noted that an embodiment may include different detectionthresholds and one or more different modes than as described herein.

Referring now to FIG. 68, shown is a flowchart 5220 of steps of oneembodiment for determining detection thresholds that may be used. Itshould be noted that an embodiment may perform the steps of 5220off-line prior to running the system for fire detection and/orverification. It should also be noted that the steps of 5220 may becharacterized as part of system design. In other words, an embodimentmay perform the steps of 5220 prior to operation. During operation, anembodiment may switch between a set of predetermined thresholds, adjustthresholds continually within predetermined ranges in accordance withcurrent conditions, and the like. The threshold ranges or sets may bedetermined in an embodiment prior to operation, such as part of 5220processing.

It should also be noted that an embodiment may also use differenttechniques in selecting the threshold(s) prior to operation than asshown in 5220.

Also, although the steps of 5220 are described with reference to asingle feature, the average absolute gray level, thresholds for one ormore other features described herein may also be evaluated. The videodata used in processing of steps 5220 may also be obtained from one ormore different sources as also described herein such as from previouslycollected data, simulated test data, experimental test data, and thelike.

At step 5222, data is obtained and the feature, the average absolutegray level, is determined for each frame, or portion of interestthereof. At step 5224, one or more average absolute gray level detectionthresholds are determined and the performance criteria are determined.The one or more detection thresholds may be, for example, a value whichindicates a fire condition when exceeded. An embodiment may select oneor more detection thresholds to evaluate in an effort to determine whichdetection threshold(s) to use in accordance with the particularperformance criteria.

At steps 5226, 5228, and 5230, the feature is evaluated in terms of theparticular performance criteria specified in one embodiment. If othercriteria are specified instead of, or in addition to, these criteria,these are also evaluated. At step 5226, the number of fire conditionsproperly classified is determined using each of the different averageabsolute gray level thresholds determined at step 5224. At step 5228,the number of dust conditions properly classified is determined inaccordance with each of the different average absolute gray levelthresholds. At step 5230, the minimum lead time is determined inaccordance with each of the different average absolute gray levelthresholds. As described elsewhere herein, the lead time is the amountof time that the technique and feature being evaluated determines a firecondition prior to detection of such condition by a particularconventional smoke and/or fire detector. The particular conventionaldetector used may vary with embodiment and may also effect the selectionof various thresholds and criteria of an embodiment.

At step 5232, an initial set of candidate thresholds is determined asall absolute gray level thresholds. At step 5234, elements from the setof candidate thresholds are eliminated if they do not meet a firstperformance criterion which, in this example, is the properclassification of all fire conditions. At step 5236, additionalcandidates may be eliminated if they do not meet a second performancecriterion which, in this example, is the maximizing of lead time. Anembodiment may eliminate particular candidates that do not alwaysprovide a minimum lead time. At step 5238, additional candidates may beremoved if a predetermined number of dust cases are not properlyclassified. It should be noted that the foregoing processing may alsoproduce a prioritized list of candidates and select a best from the listof candidates using one or more performance criteria.

The foregoing is an example of how an embodiment may establish and/oradjust one or more threshold values used in an embodiment. Othertechniques may be used and other factors considered in determining oneor more threshold values.

Once the one or more thresholds are determined for an embodiment, thefeature of EQUATION DM1 may then be used in detection of a smoke and/orfire condition. It should also be noted that the techniques justdescribed for determination of threshold(s) may be used in connectionwith determining other threshold values for one or more other featuresdescribed herein, or otherwise used, in an embodiment.

What will now be described is a second approach that may becharacterized as multifeature-based thresholding. In previousparagraphs, a single feature-based thresholding approach has beendescribed. Now, a technique will be described using multiple featuresthat may: include the foregoing average absolute gray level, use one ormore additional features, or use different features without the averageabsolute gray level.

An embodiment may use the techniques described herein to discriminate ashigh a percentage of dust cases as possible, while allowing for somedust cases to be misclassified as a smoke condition (i.e. firecondition). On the other hand, an embodiment may include performancecriteria such that thresholds are used such that all smoke-relatedconditions present with fire cases should always be properly classified.It may be desirable to establish which types of dust tests differsignificantly from all smoke-related fire cases, and which are toosimilar to fires to be classified properly. This may be used in definingdust conditions which the system may discriminate from smoke conditions.This in turn may be used to define the system's performance criteria.

Based on the foregoing, image features and their corresponding thresholdvalues may be selected in an embodiment such that they result intriggering an alarm condition for all smoke-related (fire) cases but donot trigger an alarm condition for most, or ideally all, dust cases.

In calculations used herein in one embodiment for thismultifeature-based thresholding approach, the image features may becalculated from actual images, without subtracting a reference image.This multifeature-based thresholding approach may be contrasted to theprevious approach using the average absolute gray level which makes of areference frame. The advantage of not requiring a reference frame isthat it may be characterized as robust with respect to small changes ofthe scene due to vibration or flexing of the airframe. Use of areference frame in particular features may be desirable and useful indetecting and then tracking movement of objects within the scene.

An embodiment may use the following features:

Feature #1: Mean intensity value represented as:

${{mean}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{P\left( {i,j} \right)}}}}$where:

M represents the number of pixel rows in the frame, or portion thereof,of interest;

N represents the number of pixel columns in the frame, or portionthereof, of interest;

P is the frame, or portion thereof,

P(i,j) is the pixel intensity or gray level at pixel position i,j in theimage portion or region P.

This first feature measures the average intensity or brightness of theimage, or portion thereof. High values correspond to bright images andlower values correspond to darker images. In case of diagonal, oropposing, and overhead lighting views, this feature may be calculatedlocally in a properly chosen portion of a frame, such as, for example,including the gap that may be located at the top of a cargo bay area. Insmoke conditions, values of this feature typically decrease in diagonalor opposing illumination, and increase in overhead and camera's ownillumination. In one embodiment, this may be determined as the averagepixel gray level or intensity value for all the pixels included in thearea of interest.

Feature #2: Maximum pixel intensity value represented as:

${\max(P)} = {\underset{{j = 1},N}{\max\limits_{{i = 1},M}}{P\left( {i,j} \right)}}$where:

M represents the number of pixel rows in the frame, or portion thereof,of interest;

N represents the number of pixel columns in the frame, or portionthereof, of interest;

P is the frame, or portion thereof,

P(i,j) is the pixel intensity or gray level at pixel position i,j in theimage portion or region P.

This second feature may be preferably used in an embodiment with thediagonal or opposing illumination and may be computed for a portion of aframe, such as, for example, including the gap that may be located atthe top of a cargo bay area. This feature measures a decrease ofbrightness of the LED illumination through smoke. This value drops muchmore sharply in smoke than in dust. This feature may be determined asthe maximum pixel intensity or gray level value of all pixels in thearea of interest.

Feature #3: Mean norm of gradient vector may be represented as:

${{mgrad}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M - 1}\;{\sum\limits_{j = 1}^{N - 1}\;\sqrt{{G_{1}\left( {i,j} \right)}^{2} + {G_{2}\left( {i,j} \right)}^{2}}}}}$

where

M represents the number of pixel rows in the frame, or portion thereof,of interest;

N represents the number of pixel columns in the frame, or portionthereof, of interest;

G₁ and G₂ represent vertical and horizontal components of intensitygradient, given byG ₁(i,j)=P(i+1,j)−P(i,j)G ₂(i,j)=P(i,j+1)−P(i,j)

P is the frame, or portion thereof, of interest for the feature; and

P(i,j) is the pixel intensity or gray level at pixel position i,j in theimage portion or region P.

This third feature may be characterized as measuring sharpness or detailinformation about the image or portion under analysis. Higher values forthis feature that neighboring pixels often differ in intensity, whichmeans that the image is sharp and detailed, or has a wide range of pixelintensity. Lower values of this feature correspond to images withblurred edges or details, or with narrow intensity range.

It should be noted that an embodiment may use other techniques incomputing different approximations of intensity gradient and its norm,that may be easier and less costly to compute, such as L₁ normformulation, or other approximations as described in, for example, R. C.Gonzales and R. E. Woods, Digital Image Processing, Prentice Hall, 2002,pages 134-135 and 577-579.

Feature #4: Norm of the second order moment matrix may be representedas:

${{norm}\; 2(P)} = {{norm}\left( \begin{bmatrix}{{SM}\; 20(P)} & {{SM}\; 11(P)} \\{{SM}\; 11(P)} & {{SM}\; 02(P)}\end{bmatrix} \right)}$where the second order moments S M 20, S M 02 and S M 11 are defined viaequations:

${{Xcenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{{iP}\left( {i,j} \right)}}}}$${{Ycenter}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{{jP}\left( {i,j} \right)}}}}$${{SM}\; 20(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {i - {Xcenter}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 02(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {j - {Ycenter}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 11(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{\left( {i - {Xcenter}} \right)\left( {j - {Ycenter}} \right){P\left( {i,j} \right)}}}}}$and where:

M represents the number of pixel rows in the frame, or portion thereof,of interest;

N represents the number of pixel columns in the frame, or portionthereof, of interest;

P is the frame, or portion thereof; and

P(i,j) is the pixel intensity or gray level at pixel position i,j in theimage portion or region P.

This fourth feature is related to spatial distribution of intensitythroughout the image or region of interest. If a single concentratedbright area is responsible for overall intensity increase, than thefeature value may be relatively low, as high intensity pixel values aremultiplied by small squared index differences. If high intensity isspread over the entire image or window, then the feature value will behigher.

It should be noted that an embodiment may use any one of a variety ofdifferent techniques in determining the matrix norm. As describedherein, an embodiment may use a spectral matrix norm. However, anembodiment may also use another type of matrix norm, such as 1-norm orFrobenius norm, and the like. Such alternatives are well-known asdescribed, for example in L. N. Trefethen and D. Bau, Numerical LinearAlgebra, SIAM 1997, pages 19-23.

Feature #5: Size of bright region of a frame, or portion thereof, P maybe represented as:

${{brsize}(P)} = {\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{T\left( {i,j} \right)}}}$

where binary thresholded image T is defined through an intensitythreshold and/or through connectivity parameters, as discussed elsewhereherein. A bright region may also be determined using only the intensitythreshold without considering connectivity, or an embodiment may alsoconsider how bright and connected the pixels are as described elsewhereherein in connection with determining a connected bright region. Anembodiment may also use other techniques in connection with determininga bright region and the number of pixels therein than as describedherein.

This fifth image feature measures the size either of the image of theopposite LED or of smoke/dust cloud illuminated by the overhead LED. Inother words, the size of a bright area may be determined as a number ofpixels using the opposite and/or overhead lighting view. The number ofpixels exceeding a particular brightness threshold may be determined fora frame, or portion thereof. An embodiment may select a brightnessthreshold, for example, based on actual observed mean and maximumintensity and the size of the bright area as calculated. In smokeconditions, the size of the brightness region may decrease with adiagonal illumination and increase in overhead illumination. Thesechanges are much sharper in smoke than in dust. It should be noted thatan embodiment may determine a bright region as a connected bright regionusing techniques described elsewhere herein, for example, in connectionwith growing and shrinking regions. The techniques of 4 and/or 8 pixelconnectivity and pixel brightness or intensity may be used indetermining a number of pixels in a connected bright region.

In using the foregoing features 1-5 in an embodiment, a fire or smokecondition may be set if any one feature for any one view from one cameraindicates such a condition. In other words, the output of an embodimentusing the foregoing features may logically OR the indicators associatedwith each feature for each frame such that if any one feature crosses athreshold, a fire condition is indicated.

An embodiment may determine particular features in accordance withframes obtained with different lighting views. For example, anembodiment may determine feature 1, 3 and 4 for overhead lighting view,feature 1, 2, 3 and 5 for diagonal view, and feature 1, 2 and 3 forpilot lighting view. Other combinations of image features for differentviews may also be used.

It should be noted that an embodiment may combine any two or morefeatures, such as those described herein, in accordance with one or moredifferent views for use in an embodiment. Any particular pairings offeatures, views and the like should not be construed as a limitation ofthe techniques described herein.

A threshold may be specified for each combination of view and feature.For example, feature 1 may have 2 thresholds, one for the diagonal viewand another for the overhead view. Similarly, other features may haveone threshold for each view. An embodiment may determine thesethresholds by empirical testing. The behavior of smoke as compared todust is that smoke tends to exhibit a larger change from a long termbase value or average value obtained over a relatively long period oftime. The long term base value may be obtained, for example, bydetermining an average value based on historical data for a feature,using collected sample and/or test data, and the like.

For the opposite view, a single threshold value may be specified foreach feature. It should be noted that the dimming effect with theopposite lighting view for smoke may be characterized as more severethan with dust. Thus, thresholds may be selected such that if thefeature value associated with a frame is less than the threshold, a firecondition is indicated.

For the overhead view, a lower and an upper threshold value may bespecified indicating an acceptable range with a lower end of: basevalue-lower threshold, and an upper range of: base value+upperthreshold. It should be noted that in the presence of smoke for theoverhead view, the total change (either dimming or brightening) is moresevere in smoke than in dust. The thresholds should be selected suchthat all features stay within the range for all dust scenarios and atleast one threshold is crossed (upper or lower bound) for all smokescenarios.

It should be noted that an embodiment may have one or more thresholdsassociated with each feature as may vary with each feature used in anembodiment. Additionally, when a single threshold is specified for usein an embodiment, this may be an upper or a lower threshold. Forexample, an embodiment may specify a first lower threshold for use withthe diagonal view and a feature, a second upper threshold for use withthe pilot view for a feature, and an upper and lower threshold for usewith a feature for the overhead view. The foregoing is just an exampleand the number of thresholds may vary with each feature and/or lightingview used in an embodiment.

For each of these features and each lighting scenario, a threshold maybe determined by examining variations from the base value for dust andsmoke test cases. For example, in determining thresholds for theopposite lighting view, an embodiment may determine the largest changefrom the mean or base value for dust, and the smallest change from themean or base value for smoke. The threshold value selected in anembodiment may fall somewhere between these two values.

Other embodiments may use other techniques and consider other factors inconnection with determining threshold values.

It should be noted that the foregoing, and other features, may be usedand determined for an entire frame, or portion thereof, such as aportion including the gap in the cargo bay area, or including aparticular lighting source. Additionally, the foregoing features may bedetermined for the particular views mentioned above as well as inconnection with other lighting views and camera arrangements that may beused in an embodiment.

An embodiment may use opposing cameras, such as with reference to theaft left and forward right cameras of FIG. 67 for the opposing ordiagonal lighting view, in connection with obtaining data for analysisusing the multi-feature based thresholding approach as described above.

The foregoing 5 features may be characterized as using an absolutechange approach. Any one or more of the foregoing 5 features may be usedwith a relative change approach that will now be described.

The relative approach technique uses the same image features 1 through 5as described above. However, the feature values are not used directlyfor comparison against the threshold values. Instead, for each imagefeature, a ratio is calculated by dividing the current feature value bya corresponding reference value. If the ratio is significantly greaterthan 1, then the feature value has grown above its steady-state value.Likewise, if the ratio is significantly lower than 1, then the featurevalue has decreased below the steady-state value. For each case anappropriate threshold value may be chosen to indicate smoke condition.

It should be noted that an embodiment may be analyzing image data thatmay be characterized as having a high level of noise. Accordingly, anembodiment may optionally choose to perform one or more filtering steps.An embodiment may characterize data as being “noisy” if, for example,even in complete absence of any smoke or flame phenomena, featuretrajectories display many oscillations. Filtering may be performed in anembodiment while not hampering fast smoke detection.

In one embodiment, a first filtering step may be performed. Time-seriesdata for each numerical feature may be passed through a first-orderfiltery _(filt1)(k)=α_(filt) y _(filt1)(k−1)+(1+α)y _(raw)(k)with coefficient α_(filt) determining the time constant of the filter.For example, if one image per second is acquired and analyzed for aparticular view, the filtering constant may be equal to α_(filt)=0.6,which would correspond to 95% settling time of 6 seconds. Larger valuesof α_(filt) may be used if images are more noisy, while lower values ofα_(filt) may be used when noise intensity is lower. If images areacquired more frequently then once per second, then value of α_(filt)may be closer to 1. In an extreme case when images contain no noise atall, the constant value α_(filt)=0 may be used, which corresponds to nofiltering at all.

In addition to linear first order filtering, other well-known filteringtechniques may be used to reduce the noise effects. Such filters mayinclude higher order filters, for example, optimal Butterworth filters,nonlinear filters such as median or other smoothing filters, etc.

For calculation of the steady-state reference value of the image featureof interest, another filtering operation may be simultaneouslyperformed. In its simplest form, this reference value filter may be alsoa first-order filter of the formy _(long)(k)=α_(long) y _(long)(k−1)+(1−α)y _(raw)(k)with coefficient α_(long) determining the time constant. The intentionof this filter is to calculate a long-time average of the image featurethat may serve as a reference for short term changes that need to bedetected. For this reason, the filtering coefficient α_(long) needs tobe much closer to 1 then the short term filtering coefficient α_(filt).For example, in case of the sampling rate being one image per second,this filtering constant may be equal to α_(long)=0.995, which wouldcorrespond to 95% settling time of 10 minutes, or 600 frames. Differentfiltering constants may be used depending on the particular flightconditions and performance criteria. If the reference image is notlikely to change quickly, then α_(long) may be even closer to 1. Theextreme case of α_(long)=1 would correspond to the case when noadjustment is ever allowed and the reference value remains the same.

As with the short-term filter, long-term reference value may also becalculated using a number of other well-known filtering techniques,including various finite response and infinite response linear andnon-linear filters.

An advantage of using the long-term average of each image feature as itsreference value is that the detection algorithm does not rely on anysingle reference image, but rather takes into account a large number ofconsecutive frames. In addition, slow fluctuations or drifts of thefeatures may be accommodated without compromising detection. Forexample, intensity of the opposing light may be affected by slowlychanging temperature. Using the variable long-term reference techniqueallows for slow and gradual adjustment of the reference value withoutnecessity to choose any particular time instant to re-initialize thereference image.

The short-term filtered value and the long-term reference value may beused to calculate the relative feature value that will be used forthresholding and decision making. For each image feature, the feature'srelative value with respect to its long-term value may be determined as:

${y_{relative}(k)} = \frac{y_{filt}(k)}{y_{long}(k)}$

This relative value may be used in an embodiment to make a smokedecision and activate an alarm, or otherwise produce an output signalindicating a fire/smoke condition.

A lower threshold for a particular feature may be a number between 0 and1, chosen in such a way that if the feature's relative value decreasesbelow it then a fire condition must be confirmed.

Similarly, an upper threshold may be a number larger than 1, chosen insuch a way that if the feature's relative value increases above it thena fire condition must be confirmed.

It should be noted that in order to calculate the relative value of thefeature, its steady-state long-term reference value that appears in thedenominator must not be equal zero. In practice, the values of all thefeatures described above are positive. For an intensity-based feature tobe zero all pixel values within the region of interest would have to bezero. Similarly, for a gradient-based feature to be zero all pixelvalues within the region would have to be identical. Some fluctuationsmay occur between the pixels, so that neither situation may occur andthe feature value will be positive. Nevertheless, division by very smallnumbers amplifies the effects of noise and should therefore bepreferably avoided. One possible remedy is to replace the denominatorwith a pre-selected fixed number if the denominator falls below it. Inaddition, an embodiment may remove particular relative feature valuefrom its decision process if the denominator is to small, or use theabsolute change technique, described elsewhere herein, instead.

It should be noted that although filtering is generally beneficial forforming the relative value, it may be performed as an optional step inan embodiment. An embodiment may use unfiltered raw values of imagefeatures for the numerator. This may be beneficial if the level of noisewithin images is very low or if the frame-per-second acquisition rate isvery low, in which case additional filtering may prevent fast detectionof fires. Likewise, an embodiment may choose not to adjust thedenominator and use a fixed reference value, obtained, for example, atthe system start-up, or at another appropriate time instant, such asclosing of the cargo bay door. Using a fixed reference value as thedenominator may be beneficial if the environmental conditions are knownto be changing very little during the system operation.

It should be noted that an embodiment may also need to further adjustthe input data frames and/or threshold values. In one embodiment, forexample, thresholds, and/or long term relative values may be determinedusing one or more sets of data having a noise factor or presence. Thismay differ from conditions for another environment having little or nonoise. Accordingly, there may be a difference in noise levels associatedwith thresholds and/or relative values used and new image data to beanalyzed. In one embodiment, for example, there may be a significantdifference in the background level associated with a current data setobtained. The threshold and long-term value may be determined using datawith very low background intensity level. In the actual operation, thespecific camera hardware used may be characterized by much higherbackground intensity. This non-zero offset may affect the decisionmaking process.

An embodiment may include a solution to the foregoing to remove thenon-zero intensity offset background from the acquired image data. Inone embodiment, the background adjustment may be determined inaccordance with the camera type, and other artifacts and variations ofeach embodiment and configuration. For example, a background offset maybe calculated for each camera based on dark view images. Prior to anyother processing, this background level may be subtracted from allilluminated images.

Subtracting a background offset in order to use the relative changeapproach should not be seen as a limitation of this approach, but ratheras way to remove an artifact introduced by the camera hardware that mayotherwise limit the usefulness of the acquired images.

In one embodiment, the camera may include software and/or hardware thattranslates all illuminated images into a common intensity scale, inwhich pixel intensities may be represented as 8-bit, 16-bit, or 32-bitvalues, or using another resolution that may be suitable for theparticular case. This image transformation may include corrections toaccount for any intensity offsets introduced by the camera hardware.Then, the relative pixel intensity change will always be equal torelative change in amount of light reaching a particular CCD element.Therefore, the issue of non-zero background intensity may not berelevant in accordance with the particulars of each embodiment.

It should be noted that an embodiment may compensate or adjust dataanalyzed in accordance with the conditions associated with thresholdsused as described herein or using other techniques.

It should be noted that different image features may be used inconnection with different lighting views in an embodiment. Thus, for aframe obtained with an overhead view, the frame, or portion thereof, maybe analyzed using the features 1, 3 and 4 as described above. If theframe is obtained with the far or diagonal lighting view, the frame, orportion thereof, may be analyzed using the image features 1, 3, and 5,as described above. In one embodiment, frames obtained using differentlighting views are not analyzed. In other words, the lighting may becontrolled so that images for each of four lighting scenarios areobtained alternating through each lighting scenario every fourth sample.Analysis may be performed on those frames associated with the overheadand diagonal lighting views. Alternatively, an embodiment may controllighting so that only the diagonal and overhead lighting views are usedand alternated through every other sample. Other embodiments may alsouse the techniques described herein with different lighting views.

For diagonal and overhead lighting views in one embodiment, analysis maybe performed only within small neighborhoods of images of the oppositeand overhead lights. In one embodiment, window coordinates may be usedbased on mechanical analysis of camera and lighting mounting, using theknown camera's field of view.

In one embodiment, there may be three overhead lights including in thesystem's lighting configuration. Therefore, three separate overheadwindows may be defined for each camera. The image windows, or regions,should be chosen in such a way that light scattering effects due tosmoke are always visible within them. The particular camera(s) used andincluded in an embodiment, and the associated image windows used toanalyze the diagonal and overhead views may vary with each embodiment.

In one embodiment in connection with the techniques described herein,each window for each view may be analyzed independently with thecorresponding feature values checked against the thresholds.

As described elsewhere herein, for analysis of the far view, features#1, #3 and #5 (mean intensity, mean norm of gradient vector, and size ofbright region) may be preferably used. For analysis of overhead view,image features #1, #3 and #4 (mean intensity, mean norm of gradientvector, and norm of the second order moment matrix) may be preferablyused. If any of the features cross a respective threshold in any one ofthe analyzed windows, fire is declared. In other words, in oneembodiment, a simple OR function may be used on all decision functions.However, it should be noted that an embodiment may require more than onethreshold to be crossed in order to declare a fire condition.Additionally, the output produced using the techniques described hereinmay be further combined and/or confirmed with other output indicators.One such example is described elsewhere herein in connection with FIG.69.

Symbolically, the decision functions for each camera in the baydescribed above in connection with one embodiment may be represented as:

$\begin{matrix}{{{FIRE}_{{far}\mspace{11mu}{cam}\mspace{11mu} i}(k)} = {\left( {{{mean}_{relative}\left( Y_{{far}\mspace{11mu}{cam}\mspace{11mu} i} \right)} < {thr\_ mean}} \right)\mspace{11mu}{OR}}} \\{\left( {{{mgrad}_{relative}\left( Y_{{far}\mspace{11mu}{cam}\mspace{14mu}{it}} \right)} < {thr\_ mgrad}} \right)\mspace{11mu}{OR}} \\{\left( {{{brsize}_{relative}\left( Y_{{far}\mspace{11mu}{acami}\mspace{11mu} i} \right)} < {thr\_ brsize}} \right)\mspace{11mu}{OR}}\end{matrix}$where Y_(far cam i) is the window or portions of a frame analyzed forthe far view of camera i. Note that the same 3 threshold values,thr_mean, thr_mgrad and thr_brsize, may be used for all cameras in oneembodiment.

The decision functions for the overhead view in the embodiment describedherein use all three windows of each frame for each camera and may alsobe represented as follows:

$\quad\begin{matrix}{{{FIRE}_{ovrcami}(k)} = {\left( {{{mean}_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} < {{thr\_ mean}{\_ d}}} \right){OR}}} \\{\left( {{{mean}_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} > {{thr\_ mean}{\_\mu}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} < {{thr\_ mgrad}\underset{\_}{lo}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} > {{thr\_ mgrad}\underset{\_}{up}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} < {{thr\_ norm}{\_ d}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 1{cami}} \right)} > {{thr\_ norm}{\_\mu}}} \right){OR}} \\{\left( {{{mean}_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} < {{thr\_ mean}{\_ d}}} \right){OR}} \\{\left( {{{mean}_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} > {{thr\_ mean}{\_\mu}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} < {{thr\_ mgrad}\underset{\_}{lo}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} > {{thr\_ mgrad}\underset{\_}{up}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} < {{thr\_ norm}{\_ d}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 2{cami}} \right)} > {{thr\_ norm}{\_\mu}}} \right){OR}} \\{\left( {{{mean}_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} < {{thr\_ mean}{\_ d}}} \right){OR}} \\{\left( {{{mean}_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} > {{thr\_ mean}{\_\mu}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} < {{thr\_ mgrad}\underset{\_}{lo}}} \right){OR}} \\{\left( {{{mgrad}_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} > {{thr\_ mgrad}\underset{\_}{up}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} < {{thr\_ norm}{\_ d}}} \right){OR}} \\{\left( {{{norm}\; 2_{relative}\left( Y_{{ovr}\; 3{cami}} \right)} > {{thr\_ norm}{\_\mu}}} \right)}\end{matrix}$It should be noted that in the foregoing, Y_(ovr1 cam i),Y_(ovr2 cam i), Y_(ovr3 cam i) are 3 overhead windows for camera i asdescribed previously. Note that even though the overall decision in thisone embodiment described herein may use 18 conditions for all 3 windowsof each camera overhead views, there are only 6 distinct thresholdvalues involved: 3 lower thresholds thr_mean_lo, thr_mgrad_lo andthr_norm_lo, and 3 upper thresholds thresholds thr_mean_up, thr_mgrad_upand thr_norm_up. The threshold values should be selected in such a waythat in all fire cases at least one of them is crossed by acorresponding relative feature value, but none of them is crossed for alarge portion of dust cases under consideration.

It should be noted that other embodiments may also use different subsetsof features for analysis of different views. As described elsewhereherein, for some features, only upper thresholds or only lowerthresholds may be used.

Referring now to FIG. 69, shown is a flowchart 5320 of steps of oneembodiment for detecting a fire condition. Flowchart 5320 summarizes thesecond approach just described. At step 5322, steady-state or long termvalues and one or more threshold values in accordance with the differentlighting views are determined. At step 5324, a determination is made asto whether data acquisition and analysis has stopped. If so, processingstops. Otherwise control proceeds to step 5326 where the next frame ofdata is obtained. At step 5328, any desired filtering may be performed.At step 5330, a determination is made as to the lighting view of thecurrent frame. If the lighting view is the overhead lighting view,control proceeds to step 5332 to determine relative values for theoverhead view features. If the lighting view is the far or diagonalview, control proceeds to step 5334 to determine relative values for thefar or diagonal view features. If the view is another type, controlproceeds to step 5324 and the current frame is not processed. Aftersteps 5332 and 5334, processing proceeds to step 5336 where adetermination is made as to whether any one of the thresholds iscrossed. If so, control proceeds to step 5338 to set the fire indicator.Otherwise, processing proceeds to step 5324.

Variations of the processing steps of 5320 are described elsewhereherein such as, for example, requiring more than one threshold to becrossed at step 5336 before determining a fire indication, and the like.Different features other than the four relative values in this oneembodiment may be used. Other features as used in the first embodimentof the multi-feature based thresholding approach may also be used.Additionally, the feature of the average absolute gray level of EQUATIONDM1 may also be used alone or in combination with other featuresdescribed herein as an absolute or relative value in setting a fireindicator such as, for example, in 5320 processing steps.

As described herein, an embodiment may determine thresholds usingempirical testing. It should be noted that the detection thresholdsdescribed herein may be determined under conditions with little orminimal flame reflections in accordance with particular environmentconditions and lighting views. That is, the data used for derivation ofthese threshold values should correspond to flame-less, smolderingfires, or to fires in which flames were hidden from the camera. On theother hand, if flames or their reflections do appear in an image duringoperation of the system, they will be immediately classified as fire viadark view analysis. Therefore, threshold selection only via smolderingfire images does hamper in any way the use of the system for detectionof flaming fires.

As described elsewhere herein, an embodiment may tune threshold valuesin accordance with the performance criteria of an embodiment and also inaccordance with the sensitivity and detection time of a conventionalsmoke detector.

It should be noted that tests conducted by the inventors using the fourfeatures in the multi-feature based thresholding as described hereinwith the particular lighting scenarios may be characterized as robust ina system having 4 particular performance criteria as also definedelsewhere herein. In particular, the foregoing may be characterized asinsensitive with respect to lighting intensity, camera settings, firetype, container and wall materials, and video capture parameters(required intensity offset correction). In these tests conducted by theinventors, fire conditions were successfully detected as true beforesmoke concentration reached levels that would cause the conventionalsmoke detectors to alarm, and about half of all dust cases were properlyclassified. It should be noted that in testing conditions and other fireconditions that may be characterized as having a high degree ofreflectivity, an embodiment may increase thresholds or otherwise makeadjustments to account for the added reflection. The techniquesdescribed herein may be used in detecting a fire condition and fordiscriminating between fire and non-fire conditions. An embodiment maypreferably use the four features described herein with the relativechange approach for multi-feature based thresholding. However, anembodiment may also use these features in with an absolute rather thanrelative change value. Additionally, one or more the features describedherein may be used alone or in combination with other features forproducing a final system indicator of a fire or non-fire condition.

It should also be noted that different lighting views may provide forbetter detection of fire conditions than other lighting views in anembodiment. For example, based on experimental results by the inventors,the opposite lighting view alone may not allow for a sufficient level ofdetection of open TF3 fires in an embodiment. Other views may be used inorder for dust scenarios to be properly unconfirmed. An embodiment mayuse detect and differentiate hidden TF2 and hidden TF3 fires from dustusing the far or diagonal view.

It should be noted that TF3 and other types of fires described hereinare defined in the EN-54 European Standard BSI, “EN-54 Fire Detectionand Fire Alarm Systems”. The standard fires were formulated for testingstandard smoke detectors and are referred to herein as open fires. Fordeveloping a video-based detection system, the definition of standardfires was augmented to include visual obstacles between the cameras andthe fire source. These fires are referred to herein as hidden fires.

By varying threshold values for different image features, the tradeoffbetween successful detection of smoke conditions and properclassification of dust events and other criteria may be considered in anembodiment in accordance with particular performance criteria.Thresholds used in an embodiment in connection with the foregoingfeatures, as well as other features, may vary in accordance with thedifferent conditions of each embodiment. An embodiment may determinethresholds through empirical testing, as well as using other techniques.

If it is desired in an embodiment to increase the lead time for firedetection with respect to a conventional detector, then themisclassification rate of dust increases. Dust conditions may nottrigger a false fire detection in accordance with one or more conditionsthat may vary with each embodiment including, for example, a rate and/oramount of dust in a viewing area, a distance of a dust cloud from acamera. As the rate, amount and/or concentration of a dust cloudincreases as well as the distance to the camera increases, the abilityto properly classify a dust condition decreases.

It should be noted that the type and sensitivity of a conventionaldetector, as may be used in determining thresholds and performancecriteria, may vary resulting in varying detection times. Therefore,image features and threshold values may vary in accordance with eachembodiment. For example, if a detector is used having a relatively fastdetection time and one of the performance criteria is to have thetechniques described herein detect a fire condition prior to thisdetector, adjusting threshold values to meet this particular performancecriterion may result in an increasing number of dust cases misclassifiedas smoke.

It should be noted that an embodiment of video-based detection systemmay be designed to function as a primary detection system, without areference to a conventional smoke detection system. In such a case, theperformance criteria may not include lead time with respect to any smokedetectors. Instead, the system may be designed and the threshold may beselected to provide fire detection quick enough to satisfy othercriteria, such as those specified in the EN-54 norm for fire detection.For example, the system may be required to detect fire no later than ata specified time after starting a test fire, or after smokeconcentration level, measured by a smoke obscuration, has been reached.Other performance criteria may also be used in designing the system.

The techniques described herein for smoke versus dust differentiation isbased on setting the smoke detection thresholds low enough so that allfire cases having smoke are classified as such before the conventionalsmoke alarm, but high enough so that majority of dust cases do not crossthose thresholds.

The foregoing multi-feature based thresholding as well as the singlefeature based thresholding described above may be used alone or in asystem combining other techniques for fire/smoke detection and/orverification.

Referring now to FIG. 70, shown is an example of an embodiment 5300 of asystem that may use the multi-feature based thresholding processingdescribed herein. The embodiment 5300 is an example of one arrangementand configuration of a system using the techniques for multi-featurebased thresholding in combination with other processing modules that maybe included in an embodiment. Multiple features 5302 are obtained andanalyzed for frames and used as inputs to the multi-feature basedthresholding processing module 5308 that may produce an output 5304indicating a fire or non-fire condition. Output 5304 may be used as aninput to a second level of processing or modules including sensor inputprocessing 5310 and fog detection/discrimination processing 5312. Thesensor input processing 5310 may also have as inputs one or more othersensor inputs 5311. The sensor inputs may include one or more inputs orreadings for the current environment conditions, for example,temperature, humidity, a door open indicator, and the like. The sensorinput processing may include logic in hardware and/or software forfurther confirming or denying the output 5304. For example, if theoutput of 5304 indicates a fire condition, the sensor input processingmay seek to provide an additional level of confirmation or thiscondition in accordance with one or more other inputs. Sensor inputprocessing 5310 may produce an output signal 5306 a of a fire conditionif, in addition to 5304 indicating a fire condition, for example, thetemperature is above a certain level, the humidity indicator is at acertain level, and the like. Fog detection/discrimination processing5312 may produce an output 5306 b that indicates a fire or a non-firecondition. The module 5312 may perform processing described elsewhereherein for fog detection/discrimination such that if 5304 indicates afire condition, module 5312 may produce and output signal 5306 bindicating fire if a module 5312 processing also indicates that a fogcondition is not present. Signal 5306 b may also indicate a no firecondition in the event that module 5312 detects the presence of fog orother non-fire conditions independent of 5304. The system fire conditionprocessing, module 5314 may produce a system fire/non-fire signal 5316in accordance with one or more inputs, such as 5306 a and 5306 b. Thesystem fire condition processing module 5314 may use any one or moredata fusion techniques described herein and known in the art. It shouldbe noted that an embodiment may have modules 5310 and 5312 override anoutput signal 5304 if modules 5310 and 5312 do not reach the sameconclusion of fire/non-fire matching the output 5304. An embodiment mayalso provide for module 5314 directly receiving as an input the signal5304 as indicated by the dashed line. In this way, 5310 and 5312 may beused as confirming or denying the signal 5304. However, the module 5314also has available as an input the raw signal 5304. An embodiment of5314 may output a first signal value on 5316 if 5304 indicates a firecondition that is not confirmed by either 5310 or 5312, a second signalvalue if 5304 indicates a fire condition confirmed by at least one of5310 or 5312, and a third signal value if 5304, and at least one of 5310and 5312 indicate a non-fire condition. Other embodiments may use othertechniques, arrangements, and values than as described herein.

What will now be described are other features that may be included in anembodiment in defining image-based features and thresholds for smokedetection so that system confirms all fire cases ahead of any onsitesmoke detectors while also properly confirming as many non-fire cases aspossible (minimizing the number of false positives). It should be notedthat in connection with this and other examples herein, one of thesystem's performance criteria may be to detect a fire condition prior toa smoke detector. It should be noted that an embodiment may also use anyor more other types of smoke indicators and/or measuring apparatus withan appropriate threshold against which performance of the system usingthe fire detection and verification techniques described herein may bemeasured. In addition to a smoke detector, an embodiment may also use,for example, an obscuration meter, a particle counter, a densitycounter, or other indicator measuring a dimension of the presence ofsmoke. The use of a conventional smoke or fire detector herein is usedfor the purposes of illustration and example and should not be construedas a limitation.

It should be noted that an embodiment may use the features describedherein in order to automate the detection process and minimize thedependence on hardware mounting and bay configurations. For example, itmay be desirable to define and use the detection features as describedherein since they are insensitive to the camera and/or LED positions,size and intensity of lighting elements, camera gain and exposure time,and size of the processing window.

The features described in following paragraphs in this embodiment mayprove most useful in detecting and discriminating smoky fires fromnon-fire conditions as opposed to detection of a fire in connection withother conditions, such as flames. The features described in followingparagraphs may be combined in an embodiment with one or more otherfeatures, such as hotspot, in order to provide for detection ofdifferent types of fires. An embodiment may also use the featuredescribed in following paragraphs alone in detection and distinguishingfire from non-fire conditions. Additionally, an embodiment may use thefeature described in following paragraphs in combination with othervariables, such as relative humidity, temperature, and the like, to alsoprovide for smoke detection and discrimination.

The technique described in following paragraphs is a threshold techniqueas described elsewhere herein such that the feature described infollowing paragraphs, taken alone or in combination with others, may beused to set a combination of thresholds and detection conditions so thataerosols (including dust) are not declared by the system as smoke unlessthose thresholds are crossed. If such thresholds are crossed, dust isthen perceived by the system as smoke. The feature described infollowing paragraphs may be used in an embodiment such that no dust caseis improperly confirmed as fire while also timely confirming all firecases when at least two different lighting views are used in anembodiment. It should be noted that, as also described herein, all suchfire cases are properly confirmed in accordance with system criteriasuch as using the techniques and feature(s) described herein to detectall fire conditions prior to an onsite smoke detector, alarm or otherfire indicator by at least a predetermined amount of time. An embodimentmay also use additional views and/or additional cameras in order toimprove system performance. An embodiment may use the feature describedin following paragraphs and elsewhere herein in connection with othernon-fire condition detection features and techniques, for example, suchas those described in connection with distinguishing fog from smoke/fireconditions.

An embodiment may use the feature described in following paragraphs inaccordance with the amount of bright/faded pixels as a univariateapproach to set a baseline for discrimination between smoke and dust. Anembodiment may also combine this feature described in followingparagraphs as part of a multi feature-based approach including otherfeatures, for example, such as the image intensity and motion firstorder statistics (e.g. average and standard deviation) and higher orderstatistical features. An embodiment combining this feature with othersin the multi-feature approach may have the benefit of additionalflexibility in setting combined thresholds and conditions to improve thesystem's performance in dusty and foggy environments. The featuredescribed in following paragraphs monitors, over time the amount ofconnected, fading (due to the dimming effect), and/or glowing (due tothe scattering effect) pixels due to the presence of aerosols, such asdust, in the camera field of view. The amount of fading/glowing pixelsis computed in a similar fashion to the number of hot and connectedpixels previously used to detect hotspots. As mentioned earlier, inorder to develop features as robust as possible with respect tocamera/light mounting and setting and various bay configurations thefollowing parameter may be used to measure the amount of fading/glowingpixels due to smoke or dust with the opposite camera lighting (i.e. farview). In order to use the following feature, the opposite light must beseen and detected by the camera of interest at time zero due to the factthat otherwise, the denominator of this feature goes to zero. Thepercentage of fading during the far view configuration may berepresented by:

${{Fading}\left( t_{k} \right)} = {100 \times \frac{\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}\;\left\{ {\begin{pmatrix}{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{{{P\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{k}}} \right)} -}}}} \\{{{P_{ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}} > D_{0}}\end{pmatrix} > C_{0}} \right\}}}{{Fading}\left( t_{0} \right)}\%}$where Fading(t₀) stands for the number of “bright” and connected pixelsgenerated by the opposite light at time “zero” of the reference imageand may be represented by:

${{Fading}\left( t_{0} \right)} = {\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}\;\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{P_{ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}}} > D_{0}} \right) > C_{0}} \right\}}}$The quantity Fading(t₀) must be non zero for the above division to hold.That is, at time zero the opposite camera light must be visible to thecamera of interest so that a minimum threshold number of pixels must beclassified as bright and connected. Fault conditions that might precludefulfillment of this condition may include, for example, obstruction ofopposite light and dirty lenses. The minimum threshold number of pixelsmay vary with each embodiment and may be determined empirically. In theevent that this minimum number is not met at time t0, it may indicate aproblem with the system, such as, for example, a problem with thecamera, gain control setting, and the like. In the event that thisminimum is not met, an embodiment may take any one or more alternativeactions rather than use the above-referenced feature for the oppositelighting view. An embodiment may choose to not use this particular view,may select another feature for use, may require that additional checkingof system components be performed, and the like. In the foregoing andother features, it should be noted that:

(M,N) designates the processing window dimensions (e.g. 320×480);

D₀ is the “brightness” threshold, such as, for example, a value of 100gray levels over a scale of 0 to 255;

S_(s) is the sweeping step across horizontal and/or vertical directions;and

C₀ is the clustering threshold, such as 3.

In one embodiment, a default value may be used for any one or more ofthe foregoing. For example, a default value of 1 may be used for S_(s).It should be noted that S_(s) indicates a stepping factor of the numberof pixels processed in the region of interest as designated by (M,N).The stepping factor may be used to reduce the number of pixelsprocessed. An embodiment may select D₀ by examining histogram(s) ofpixel values as described elsewhere herein for the particularenvironment. An embodiment may have the processing frame or area ofinterest padded (e.g. by zeros) at the perimeter to allow the processingof pixels at the border of the processing window. It should be notedthat the clustering threshold C₀, the brightness threshold Do aredescribed elsewhere herein in connection with determining a number ofpixels in a bright and connected region or connected bright region, forexample, as described with shrinking and growing regions. An embodimentmay use a default pixel-connectivity, such as a 4-pixel connectivity,and may also exclude pixels at the edge of the rectangular neighborhoodof the pixel of interest (i.e. i+j±1). It should also be noted that theinner double sum of the fading equation translates into a four elementsum in the case of 4-pixel connectivity type:[P _(Ref)(S _(s) m−1,S _(s) n;t ₀)+P _(Ref)(S _(s) m,S _(s) n−1;t ₀)+P_(Ref)(S _(s) m+1,S _(s) n;t ₀)+P _(Ref)(S _(s) m,S _(s) n+1;t ₀)]>D ₀Recall that before applying the above connectivity formula the pixel ofinterest itself has to exceed the detection threshold; that isP_(Ref)(i,j;t₀)>D₀, (i,j)=(S_(s)m,S_(s)n). An embodiment may firstcompare a pixel to the brightness threshold Do prior to determiningother more processor-intensive calculations, such as pixel connectivity.

It should be noted that in addition to space connectivity as describedherein with a connected property of a connected bright region, anembodiment may also require that a pixel also be connected in time to adegree before declaring it as a “bright” and “connected” pixel. Forinstance, a time-connectivity of order K means that thedetection-connectivity conditions must be met during the previous Kconsecutive time samples:

$\left\{ {\left\lbrack {\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;\left( {{{{P\left( {i,{j;t_{k}}} \right)} - {P_{ref}\left( {i,{j;t_{0}}} \right)}}} > D_{0}} \right)}} \right\rbrack > C_{0}} \right\}$for  t = t_(k), t_(k − 1), …  , t_(k − K)

Note that pixels of interest in the foregoing may be compared to thereference pixel using absolute value in order to preclude situationswhere glowing and fading effects might-occur simultaneously and canceleach other. Use of absolute value may provide a benefit of increasingthe system sensitivity to detect scene changes quickly. When theopposite light is totally obscured, a fading value approaches 100%. Thisphenomenon may be observed in fire cases. Use of the foregoing featureoffers several benefits including:

-   -   Not dependent on the processing window size (in contrast to        other features such as the mean intensity) that can be affected        by mounting and bay configurations. For instance, the processing        window may be set initially to the upper half of the frame (i.e.        320 by 480) where the opposite light is guaranteed to appear        regardless of the light and camera positions. However, if the        light coordinates are known a priori then the window might be        reduced to include pixels just around the light of interest to        speed up the processing time.    -   Not highly dependent on the opposite light size and intensity    -   Not highly dependent on the camera gain and exposure time        settings    -   Not very sensitive to noise since space and time connectivity        conditions may exclude spurious and intermittent bright pixels        from being detected.    -   More sensitive to “thick” smoke and similar aerosols        characterized by a high efficiency in obstructing the opposite        light and breaking pixel connectivities, thus increasing        dramatically the fading percentage feature.    -   Less sensitive to “light” (e.g. dust) and moving (e.g. fog)        aerosols.

The foregoing fading feature may not be used as defined above inconnection with views other than the opposite lighting view because attime zero there may be no bright pixels. In fact, it is expected thatduring overhead lighting, for example, no light might be visible exceptwhen smoke or other aerosols are scattered. In addition, the size ofglowing area during overhead and near view lighting is not necessarilyproportional to the original size of the bright area. For instance,during the pilot view, a large amount of bright pixels may be originallypresent due to reflections of the camera's own lighting from thecontainer sides. Another limitation is the range of the variable thatmay vary from 0 to thousands making it hard to benchmark it.

For these reasons, only the change in the scene intensity may bemeasured by the number (and not the percentage) of glowing/fadingpixels. Although the feature described in following paragraphs for usewith the overhead and near lighting views is similarly less dependent onthe processing window, camera/light mounting, and spurious pixels, itmay be characterized as more dependent on the camera gain and exposuretime settings than the feature defined above for the opposite lightingview. The feature that may be used for detection during overhead andnear view lighting as the number of fading/glowing pixels may berepresented by:

${{FG}\left( t_{k} \right)} = {\sum\limits_{m = 1}^{\frac{M}{S_{s}}}\;{\sum\limits_{n = 1}^{\frac{N}{S_{s}}}{\quad\;\left\{ {\left( {{\sum\limits_{i = {- 1}}^{i = 1}\;{\sum\limits_{j = {- 1}}^{j = 1}\;{{{P\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{k}}} \right)} - {P_{ref}\left( {{{S_{s}m} + i},{{{S_{s}n} + j};t_{0}}} \right)}}}}} > D_{0}} \right) > C_{0}} \right\}}}}$

In one embodiment, different detection parameters and thresholds may beused for the opposite lighting view and another set for the overhead andnear lighting views. For example, an embodiment may specify thefollowing depending on the view being processed:

TABLE I Detection threshold and parameter values to confirm smoke FarOverhead Near view view view Minimum fading percentage for detection 20% — — Minimum number of fading and/or —  10 10 glowing pixels fordetection Brightness threshold (gray levels) 100 130 40 Connectivitytype 4-pixel 4-pixel 4-pixel Space connectivity parameter (pixels)  3  3 4 Time connectivity parameter (samples)  2  2  2 Sweeping stepparameter (pixels)  1  1  1

In one embodiment, the decision logic to confirm may be a logical ORsuch that IF the feature exceeds its predefined threshold in any of theactive views THEN smoke will be confirmed. An embodiment may alsorequire that at least two different views be used in making thisdetermination. It should be noted that the following representspreferred ranking of views that may be used in an embodiment with thefeatures described herein: opposite, overhead, and near or pilot view,in which opposite is the preferred view and near or pilot may be theleast preferred. The foregoing ranking may be used in an embodiment whendetermining a combination of views to be used in detection of fireconditions.

It should be noted that an embodiment may select thresholds, such as thebrightness threshold, by empirical analysis. For example, histograms ofpixel grey level distributions from prior conditions may be examined fordust conditions and smoke conditions. An embodiment may determine, for agiven set of data, the maximum brightness value associated with a dustcondition and a minimum brightness value associated with a smokecondition. The embodiment may select a threshold from within this rangein accordance with the particular system performance criteria andparticulars of each embodiment. It should be noted that, as describedelsewhere herein, an embodiment may select a detection time, such as maybe determined using an onsite smoke detector, an obscuration meter, andthe like. This detection time may serve as a benchmark time by which thetechniques described herein are used in connection with detection of afire condition. In other words, one of the performance criteria of anembodiment may include detection of a fire condition prior to thisdetection time. The detection time may also be, for example, a timespecified in accordance with a particular smoke detector, a time when aparticular condition associated with smoke (e.g., density, particlecount) is reached.

Using the foregoing features, fire conditions may be detected prior toan onsite smoke detector or other detection threshold without improperlyconfirming dust cases. An embodiment may also use a higher exposure timeavailability and a higher gain setting for different cameras, such asthose used in connection with the near view lighting. However, this mayalso increase the system sensitivity to dust and fog. The detectionparameters and threshold may be balanced in accordance with particularconditions in an embodiment. An embodiment may also use other features,such as those described elsewhere herein for hotspot detection.

An embodiment may impose a time connectivity (e.g., detection for atleast 2 consecutive samples) to minimize the effect of fluctuations ofthe studied feature. Other filtering may also be used an embodiment suchas, for example, using a low pass filter (e.g., similar to a sloshfilter for a fuel system) to avoid fluctuations. However, it should benoted that use of filtering techniques may cause a delay in the systemdetection performance in an embodiment.

As described herein, detection efficiency in an embodiment may depend onthe active view (far, near, or overhead) and camera position (Aft or Fwdcameras). In one embodiment, an active view may be considered as a viewfor detection if the system exceeded the appropriate detection thresholdahead of the fastest onsite smoke detector (without alarming during alldust cases). Note that, as described elsewhere herein, detection in anembodiment may be performed by requiring at least 2 active views andrequire that at least one threshold for one view be exceeded for a firecondition to be determined.

As described elsewhere herein, an embodiment may use the far or oppositelighting view since this may be characterized as generally mostefficient in terms of detection. Different types of fire conditions andother particulars of an embodiment may result in other lighting viewsbeing more or less efficient than others. For example, a poor efficiencyof the near view lighting in an embodiment may be due to theinsufficient amount of light captured by the cameras may make them lesssensitive during their own lighting. An embodiment may preferably selectto use a different feature than the number fading/glowing pixel featureas described above. For example, an embodiment may alternatively selecta feature of mean pixel intensity, and/or the first statistical momentfor use with the near view.

An embodiment may use the foregoing single feature with differentparameters and thresholds in accordance with lighting views to detectfire cases ahead of the onsite smoke detectors or other detection meanswithout improperly confirming any dust cases. An advantage of theforegoing when used in combination with far view was its robustnesstowards camera settings and mounting, bay configurations, spurious noisyand intermittent pixels, and processing window. It should be noted thatif, during most of the dust scenarios feature values are zero in testconditions, the foregoing approach may be efficient in avoiding dustfalse alarms. The amount of lead time used an embodiment may be balancedwith the desire of system performance criteria for avoiding negativefalse alarms.

Data fusion techniques, as described elsewhere herein, may be used in afire detection and verification system. An embodiment of a firedetection and verification system is described, for example, inconnection with FIG. 1 and its possible variations. One such techniquethat can be used in connection with data fusion uses fuzzy logic tocombine multiple inputs and produce a final decision regarding whether afire conditions exists. Data fusion techniques may use inputs including,for example, sensor outputs, outputs from other techniques, featuresbased on visual information, and/or features based on non-visualinformation. The outputs from other techniques may be outputs producedusing techniques described elsewhere herein such as, for example, thoseused in discrimination and detection of fire and non-fire conditionsincluding fog, dust, and the like.

Fuzzy logic is a generalized form of conventional logic where an elementcan either be a member or not a member of a particular set. Fuzzy logicmay be characterized as an efficient approach to map an input space toan output space and may be used with systems that involve vague dataand/or an imprecise decision process. Fuzzy logic allows for anapproximation using a set of intuitive rules conjectured from humanexperience and relevant data. One advantage that may be afforded by asystem using fuzzy logic is the ability to provide a compromise betweenaccuracy and significance. Fuzzy logic may be used in connection withapplications where accurate measurement is not achievable and/orcritical decisions may be needed in a timely manner based on possibly“imprecise” data.

Use of fuzzy logic is based on a rigorous theory of approximation thatis well suited to many real-world applications including smokedetection.

What will now be described are concepts and definitions pertaining toconventional logic that may be generalized for use with fuzzy logic inconnection with techniques described herein.

A fuzzy set is made up of elements with only a partial degree ofmembership. In contrast to classical sets where an element eitherbelongs or does not belong to the set, an element belongs to its fuzzyset with a certain degree of membership between 0 and 1. In theparticular case of a binary degree of membership (i.e. either 0 or 1),the fuzzy set coincides with the conventional crisp set. The generalconcept of a fuzzy set is intuitive and more descriptive of naturalphenomena. Take for instance the set of “warm months in Vermont”. Theclassical definition asserts that a month can only be warm or not. Thisclassification may be representative in the case of the month of July,but not in the case of the month of April, for example. If the “warmmonths in Vermont” set is considered with months of the year as itselements, two different representations may result depending on thedefinitions of the classical (i.e. 2-valued) and fuzzy sets asillustrated in FIG. 71.

In the 5350 of FIG. 71, a fuzzy set may be used to represent thestatement “warm weather in Vermont” differently than with conventionalsets.

A membership function is a curve that maps each point in the fuzzy setto a real number in the interval [0 1] that defines the degree ofmembership of such point to the fuzzy set. Consider, for example, theset of smoky scenes in connection with a fire testing chamber. The sceneof an EN54 chamber after approximately 10 minutes of a TF2 fireexperiment, where smoke is allover the chamber, may be characterized asa smoky scene. It should be noted that the EN-54 and related fire types(e.g., TF-2), codes and the like, as used and also described elsewhereherein, refers to the European BSI Standard entitled “EN-54 FireDetection and Fire Alarm Systems”. Just before the fire is started, thescene may be characterized as a clear. However, it may not be clear howto describe the scene during the 10 minutes between the two scenes.Proper characterization of those 10 minutes is crucial in connectionwith smoke detection. The following two membership functions depictexamples of both fuzzy and classical membership functions for the spaceTF2-type “smoky scene”.

Referring now to FIG. 72, shown is an example 5352 graphicallyillustrating how a continuous variation of the fuzzy membership functionmay be preferred as more descriptive of a “smoky scene” than thesharp-edged crisp function.

Fuzzy logical reasoning may be used to extend standard Boolean logic toall real numbers between 0 (i.e. completely false) and 1 (completelytrue). Such extensions may be embodied in many ways. An embodiment mayuse techniques for extending the logical operators, such as “AND”, “OR”,and “NOT”, wherein:

-   i) (A AND B)→min(A,B) where A and B are 2 real numbers between 0 and    1-   ii) (A OR B)→max(A,B) where A and B are two real numbers between 0    and 1-   iii) (NOT A)→1-A where A is a real numbers between 0 and 1

Note that for the particular case of A=0 and B=1, fuzzy logicaloperators in this example coincide with the classical Boolean logic.These logical operators may also be defined in more general terms sothat various fuzzy operators can be developed for specific types ofapplications. The AND operator is an example of a more general binarymapping called a “T-norm” (i.e. Triangular norm) whereas, the ORoperator is an example of a more general “S-norm” (or T-conorm) underthe following conditions:

$\begin{matrix}\left. a \right) & {{Boundary}\mspace{14mu}{condition}} & \left\{ \begin{matrix}{{{T\left( {0,0} \right)} = 0},} & {{T\left( {a,1} \right)} = {{T\left( {1,a} \right)} = a}} \\{{{S\left( {1,1} \right)} = 1},} & {{S\left( {a,0} \right)} = {{S\left( {0,a} \right)} = a}}\end{matrix} \right. \\\left. b \right) & {{Monotonicity}\mspace{14mu}{condition}} & \left\{ \begin{matrix}{{T\left( {a,b} \right)}<={T\left( {c,d} \right)}} & {{{if}\mspace{14mu} a}<={c\mspace{14mu}{and}\mspace{14mu} b}<=d} \\{{S\left( {a,b} \right)}<={S\left( {c,d} \right)}} & {{{if}\mspace{14mu} a}<={c\mspace{14mu}{and}\mspace{14mu} b}<=d}\end{matrix} \right. \\\left. c \right) & {{Commutativity}\mspace{14mu}{condition}} & \left\{ \begin{matrix}{{T\left( {a,b} \right)} = {T\left( {b,a} \right)}} \\{{S\left( {a,b} \right)} = {S\left( {b,a} \right)}}\end{matrix} \right. \\\left. d \right) & {{Associativity}\mspace{14mu}{condition}} & \left\{ \begin{matrix}{{T\left( {a,{T\left( {b,c} \right)}} \right)} = {T\left( {{T\left( {a,b} \right)},c} \right)}} \\{{S\left( {a,{S\left( {b,c} \right)}} \right)} = {S\left( {{S\left( {a,b} \right)},c} \right)}}\end{matrix} \right.\end{matrix}$

The first condition imposes generalization to conventional crisp sets.The second condition guarantees that a decrease in the membership valuesin A or B cannot produce an increase in the membership value in (Aintersection B) or (A union B). The third and fourth conditions indicatethat the T and S-norms must be indifferent to the combination order offuzzy sets. Several T and S-norms have been proposed to provide ways tovary the “intersection and union degrees” of the operators such asdescribed in, for example, Zadeh, L. A., Fuzzy sets. Information andControl, Vol. 8, pp. 338-353, 1965, and Klir, G. I., Yuan, B., FuzzySets and Fuzzy Logic: Theory and Applications. Prentice Hall, 1995.

The decision making process using fuzzy logic uses a set of IF-THENrules that involve fuzzy sets and fuzzy operators. For example, a rulemay be:

“IF (x is A) AND (y is B) THEN (z is C),”

where A, B, and C are fuzzy sets defined by their membership functionsover the ranges (i.e. universe of discourse) of their input variables.

Consider the following more specific example, “IF (Average frameintensity is high) AND (Relative humidity is low) AND (Temperature ishigh) THEN (Smoke-likelihood is high).” Note that the statement“(Average frame intensity is high)” may be represented by a numberbetween 0 and 1 depending on the actual average frame intensity valueand its projection on the appropriate fuzzy set that defines the word“high” (e.g. Gaussian function). The statement (Smoke-likelihood ishigh) may mean, for example, that the probability of smoke is higherthan 0.7 (in a scale of [0 1]) and that a “CONFIRM” is the right messagefor a smoke/fire detection system to send.

In one embodiment, inputs to an IF-THEN rule may be the current valuesof the input variables (e.g. frame intensity, relative humidity, andtemperature). Using the Mamdani approach, for example, the output may bean entire fuzzy set which is “defuzzified” to provide a scalar (e.g.average) that represents best the output variable (probability ofconfirmation). It should be noted that the Mamdani approach and othersthat may be used in connection with fuzzy logic are known, for example,as described in Mamdani, E. H., “Applications of fuzzy logic toapproximate reasoning using linguistic synthesis,” IEEE Transactions onComputers, Vol. 26, No. 12, pp. 1182-1191, 1977.

One embodiment may implement an IF-THEN rule using 3 steps. As a firststep, the input is “fuzzified”; that is the input variable is projectedinto its appropriate fuzzy set(s). Note that a variable may belong tomore than one fuzzy set with different degrees of membership allowingfor more than one rule to be applied. For example, a temperature valueof 20 degrees Celcius may be interpreted as simultaneously meaning that“the temperature is low” with a small membership value (i.e. degree ofbelief) of 0.2, and also that “the temperature is medium” with a highdegree of belief of 0.8 (in a scale of 0 to 1). The foregoing may beused to illustrate a benefit of using fuzzy logic in a system sincefuzzy logic allows for approximate reasoning to solve conflictinginformation where an element may belong to more than one fuzzy set.

The second step in one embodiment using fuzzy logic and IF-THEN rules isto apply logical statements (e.g. AND) in conjunction with other inputsto compute a scalar value (i.e. degree of support for the rule) between0 and 1. The third and final step in this embodiment assigns a fuzzy setto the output based on the degree of support of the rule and theimplication operator (e.g. MIN).

Referring now to FIG. 73, shown is an example 5400 illustrating theforegoing 3 steps as may be used in an embodiment. Consider thefollowing rule with a pair of average frame intensity and relativehumidity of (8, 50): “IF (Average frame intensity is high) AND (Relativehumidity is low) THEN (Smoke-likelihood is high).” The first step isrepresented by 5402 a and the second step by 5402 b. Note that the finaloutput by applying step 3 as represented in 5402 c (i.e. truncatedtriangle) is a fuzzy set representing the original verbal fuzzy outputset (i.e. “smoke is high”) “implicated” (via MIN operator) with the ruleof support (i.e. 0.7 in this example).

An embodiment may also use other implication methods such as, forexample, multiplication. However, for purposes of illustration infollowing paragraphs, the “MIN” operator is used. It should be notedthat an embodiment may also assign one or more weights to one or morerules in which each rule consequent is multiplied by the rule weightbefore the implication takes place. An embodiment may use the sameweight for all rules or associate different weights with one or moredifferent rules, for example, to emphasize one rule over the other.

Fuzzy inference is the process of aggregating all fuzzy rules togetherto provide a unique crisp output representing the resulting fuzzyoutput; this process may also be referred to as the “defuzzification”process. There are multiple fuzzy inference approaches such as, forexample, the two well-known approaches of Mamdani and Sugeno. TheMamdani inference approach stipulates that the result of each rule is afuzzy set. The overall resulting output after applying all the rulesusing an aggregation operator (e.g. Max operator) is a fuzzy set. Thefinal system output after defuzzification (e.g. center of gravity) ofthe overall fuzzy set is a number in the universe of discourse of theoutput variable (e.g. 0-100% probability of confirmation). Although whatwill be described in following paragraphs are techniques using theMamdani-type inference to implement fuzzy logic for smoke detection, anembodiment may also use other approaches. The particular examples andapproach described herein should not be construed as a limitation.

Following is an example showing the Mamdani fuzzy inference approach inaggregating fuzzy rules. Consider the following two rules:

-   Rule 1: “IF (Average frame intensity is high) AND (Relative humidity    is low) THEN (Smoke-likelihood is high).”-   Rule 2: “IF (Average frame intensity is low) AND (Relative humidity    is medium) THEN (Smoke-likelihood is low).”

Consider the MAX operator as the aggregation operator and the “areacentroid” as the defuzzification operator in this example. The resultingoutput from aggregating both rules is illustrated in 5506 of FIG. 74.

It should be noted that each rule may have its own weight depending onits degree of importance. The weight of each rule should be taken intoaccount at the aggregation (and subsequently at the defuzzification)processes. The defuzzification method, as may be represented as theoutput fuzzy set by a scalar, may be used in connection with amachine-based decision since numerical quantities may be evaluated inconnection with determining whether to take one action or another.

It should be noted that an embodiment may use any one of well-knownmethods for defuzzification depending on the desired degree of“tolerance” or “caution” of the output action that may vary with eachembodiment. For example, one factor that may be considered in decidingwhich defuzzification method to use relates to the tradeoff betweenfalse alarms and early detection in connection with smoke detection. Forinstance, if emphasis needs to be put on early detection then using the“Largest Of Maximum” (LOM) as a defuzzification method may be moreappropriate for use in an embodiment.

However, if more emphasis needs to be put minimizing false alarms (i.e.delaying the confirmation) then the Smallest Of Maximum “SOM”defuzzification method may be more appropriate for use in an embodiment.The well-known defuzzification methods as may be used in an embodimentinclude, without limitation, the “CENTROID” (i.e. centroid of theaggregated area), “MOM” (i.e. middle of maximum), “SOM” (smallest ofmaximum), “LOM” (largest of maximum), and many others.

Referring now to FIG. 75, shown is a representation 5508 illustratingthe foregoing defuzzification methods in connection with two exampleoutput universe of discourses. In other words, 5508 shows various outputlikelihoods that may be associated with each particular defuzzificationmethod if a universe of discourse is as depicted. The defuzzificationmethod selected may be chosen in an embodiment such that the associatedoutput likelihood fairly represents the overall estimation of the systemoutput (e.g., smoke or non-smoke).

In one embodiment using fuzzy logic for smoke detection, the CENTROIDmethod may be used. However, other embodiments may use otherdefuzzification techniques that may vary in accordance with eachembodiment depending on criteria, for example, such as the compromisebetween early smoke detection and minimal false alarm rate (e.g., due tofog, dust, and other non-aerosols), and other smoke discriminationtechniques that may be used in an embodiment.

Consider the general case of multiple rules that are aggregated tocompute the output fuzzy set which, in turn, is then defuzzified.Described in following paragraphs is one technique and representation.The output of a system may be determined using general fuzzy logic (i.e.T-norm and S-norm) and defuzzification (i.e. D) operators to produce ageneral formula. The general formula may then be applied in the case oftypical operators and membership functions. Following is a set ofnotation used:

-   -   R→Number of rules involved in the inference fuzzy system    -   A_(r)→Number of antecedents (i.e. input statements) per rule “r”        (e.g. IF “Average frame intensity is high”). Without loss of        generality, it is assumed that there is one input variable per        antecedent.    -   C_(r)→The rule consequent (e.g. THEN “Smoke-likelihood is high”)    -   x_(ar)→Input value of the antecedent “a” of the rule “r” (e.g. 6        gray levels)    -   MF_(ar)→Membership function at the antecedent “a” of the rule        “r” (e.g. Gaussian membership function)    -   MF_(cr)→Membership function at the unique consequent “c” of the        rule “r”    -   μ_(r)(a)→Membership degree (i.e. degree of firing) at a given        antecedent “a”.    -   Ip(.,.)→Implication method assumed the same across the rules        (e.g. MIN)    -   Ag(.,.)→Aggregation method assumed the same across the rules        (i.e. MAX)    -   Op(.,.)→Logical T-norm (e.g. MIN) or S-norm (e.g. MAX) operator    -   W_(r)→Weight of rule “r” (e.g. equal weight—i.e. 1 for all        rules)    -   Df(.,.)→Defuzzification method (e.g. CENTROID)    -   Fo→The resulting fuzzy set of all rules    -   y→The crisp output of the fuzzy inference system (e.g. smoke        likelihood)        A given rule “r” may have “A_(r)” antecedents. For each rule, an        embodiment may follow the 3 steps (fuzzify, apply logical        operators, and implicate rule) mentioned elsewhere herein to        compute the degree of support of each rule. The rules may then        be aggregated to compute the resulting fuzzy output set. The        defuzzification process may be applied to compute the fuzzy        inference output (e.g., a single number). The following is a        representation of applying the 3 steps previously described for        a given rule “r” with “A_(r)” antecedents. With reference to        a)-e) below, it should be noted that a) corresponds to step 1        processing, b) corresponds to step 2 processing, and c), d)        and e) correspond to step 3 processing:    -   a) Fuzzify the inputs (i.e. one input per antecedent) to compute        the membership degree of each antecedent.        μ_(r)(a)=MF _(ar)(x _(ar)) a=1, 2, . . . , A _(r)  (A)    -   b) Apply the appropriate logical operator Op(.,.) between the        different antecedents of the rule.

$\begin{matrix}{\mu_{r} = {\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{OP}}}\left( {{\mu_{r}(a)},{\mu_{r}(b)}} \right)}} & (2)\end{matrix}$

-   -    Note that the order of operation is irrelevant because of the        commutativity property of the logical operator.    -   c) Apply the implication method to compute the final fuzzy        consequent of the rule “r”. Note that before applying the        implication method, each rule has to be multiplied by its        weight—a scalar between 0 and 1 indicating the relative degree        of importance of such rule with respect to the other rules.        C _(r) =Ip(W _(r)μ_(r) ,MF _(cr))  (3)    -   d) Aggregate all rules to compute the resulting fuzzy output set        of the Mamdani-type inference system,

$\begin{matrix}{{Fo} = {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{Ag}}}\left( {C_{r},C_{s}} \right)}} & (4)\end{matrix}$

-   -   e) Apply the defuzzification process to estimate the final        output (e.g. single number),        y=Df(Fo)  (5)

Rewriting the above equations into a single formula to estimate thesystem output yields a crisp and deterministic output that may berepresented as:

$\begin{matrix}{y = {{Df}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{Ag}}}\left\lbrack {{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{OP}}}\left( {{{MF}_{ar}\left( x_{ar} \right)},{{MF}_{br}\left( x_{br} \right)}} \right)}},{MF}_{cr}} \right)},{{Ip}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{OP}}}\left( {{{MF}_{ar}\left( x_{ar} \right)},{{MF}_{br}\left( x_{br} \right)}} \right)}},{MF}_{cr}} \right)}} \right\rbrack} \right)}} & (6)\end{matrix}$Using one set of operators for Mamdani-type fuzzy inference systems,Equation (6) may be rewritten in such particular case as follows,

$\begin{matrix}{{y = {{CENTROID}\left( {\overset{{\{{r,s}\}} = {\{{R,R}\}}}{\underset{r \neq s}{\underset{{\{{r,s}\}} = {\{{1,1}\}}}{MAX}}}\left\lbrack {{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\left( {{\Gamma_{ar}\left( x_{ar} \right)},{\Gamma_{br}\left( x_{br} \right)}} \right)}},\Gamma_{cr}} \right)},{{Min}\left( {{W_{r}{\overset{{\{{a,b}\}} = {\{{A_{r}A_{r}}\}}}{\underset{a \neq b}{\underset{{\{{a,b}\}} = {\{{1,1}\}}}{Min}}}\left( {{\Gamma_{ar}\left( x_{ar} \right)},{\Gamma_{br}\left( x_{br} \right)}} \right)}},\Gamma_{cr}} \right)}} \right\rbrack} \right)}},} & (7)\end{matrix}$where Γ stands for a Gaussian membership function.

Using the output, y, of the foregoing equations, an embodiment mayproduce an output signal that is a Boolean signal indicating whetherthere is a fire event or not by comparing the fuzzy inference output, y,to a given number or threshold, such as, for example, 60%. If y is >60%then Confirm fire event, otherwise, Unconfirm.

Application of the foregoing fuzzy logic may be used in a fire detectionand verification system as described elsewhere herein. An embodiment mayalso further tune/refine that which is described herein, for example, todetermine and use optimal membership functions and their parameters,number and nature of rules, and fuzzy inference approach, that may varyin accordance with application and system. In addition to that which isdescribed herein, other embodiments, and variations thereof, arepossible and the particular examples described herein should not beconstrued as a limitation.

In one embodiment, 3 input variables may be used: absolute average frameintensity, relative humidity, and temperature. The system output, asrepresented by Equation 7, is a number between 0 and 1 representing theestimated probability of confirmation. Following is a description of thesystem fuzzy inference that may be used in one embodiment in connectionwith smoke detection.

What will now be described are the membership functions. The membershipfunction is an important factor of the fuzzy inference system.Parameters and domain of application of the membership function shouldreflect the physical properties of the variable of interest. For allinput and output variables, an embodiment may use, for example, theGaussian distribution may be used to approximate sensor measurementerrors and inaccuracies.

It should be noted that an embodiment may use other techniques torepresent sensor measurement errors and inaccuracies. For example, anembodiment may determine a distribution representing the sensormeasurement errors and inaccuracies in accordance with analyzing resultsof sensor's used in a particular embodiment. An embodiment may also useother well-known distributions to approximate the foregoing errors andinaccuracies including, but not limited to, a trapezoidal, a triangular,and a sigmoidal distribution.

One of the input variables is the relative humidity (RH). Relativehumidity information may be used in setting thresholds for the firedetection system's decision making unit so that smoke will be detectedin all cases, including the unlikely case of simultaneous fog and smoke,without compromising the system ability in minimizing fog-related falsealarms.

With an RH sensor of moderate accuracy in mind, referring now to FIG.76, shown is an example of a graphical illustration 5510 of RHmembership functions that may be used in one embodiment. The membershipmay be used in an embodiment where the relative humidity may be in oneof 3 regions (but not the 3 of them at the same time) reflecting theprobability of absolute NO fog (i.e. dry for 0<RH<85), probable fog(i.e. humid for 60<RH<100), and certain fog (i.e. foggy for RH>80). Thispartition is built around the assumption of an RH sensor with absoluteaccuracy ±7.5% and about 10% uniformity across the area being monitoredfor smoke detection such as, for example, the bay area of an aircraftfor cargo. Note that different RH regions may overlap due to, forexample, sensor inaccuracy and the variability across cargo bays wherefog formation may form at various RH values varying from 70 to 100%.Other embodiments may use other sensor accuracies and other factors indetermining RH membership functions used.

Recall that the universe of discourse of RH is [0 100] % and that the RHmembership functions are designed to detect the presence of fog and notto measure the RH. Note also that all RH readings of 40% or lessindicate that no fog is present (i.e. dry) with absolute certainty (i.e.degree of membership=1).

However, if the RH sensor reading occurs in a region of uncertaintywhere the RH value may have more than one image in two (or more)different membership functions, then fuzzy inference result inactivating more than one rule leading to an efficient approximatereasoning to resolve this uncertainty. For instance, a RH reading of 60%as shown in 5510 may be interpreted in two different ways: the “RH isdry” with a membership degree of about 0.58 (line 5510 a) and the “RH ishumid” with a membership degree of about 0.18 (line 5510 b). Rules thatinvolve the two membership functions “Dry” and “humid” will beactivated.

Referring now to FIG. 77, shown is another graphical illustration of RHmembership functions that may be used in an embodiment. In 5512, the RHuniverse of discourse over the [0 100] % interval uses two regions.

Referring now to FIG. 78, shown is another graphical illustration of RHmembership functions that may be used in an embodiment. Therepresentation 5514 includes 3 regions (i.e. “dry”, “humid”, and“foggy”) with overlap as shown.

It should be noted that an embodiment may use one of the foregoing orother configuration in an embodiment in accordance with the particularenvironment of each embodiment.

Temperature is a second input variable that may be included in anembodiment for fire event detection. In some fire instances, temperaturemay be a deciding factor in early fire detection. Temperatureinformation may include any one or more different parameter valuesincluding, for example, the actual and differential (i.e. temperatureincrease or decrease with respect to reference) values to detect heatsources and to double check the RH reading for fog formation. Otherforms of temperature information, such as high order statisticalmoments, may also be used in an embodiment. Temperature values may beused to distinguish fire conditions, such as smoke, from other non-fireconditions, such as dust, and fog.

Referring now to FIG. 79, shown is a graphical illustration of 5516 ofmembership function partitions for temperature that may be used in anembodiment. The temperature universe of discourse in this illustrationis (−20 70-degrees C.) divided into three regions (i.e. “low”, “medium”,and “large”). The overriding condition is that if the temperature is“large”, then a fire confirmation must be positive. It should be notedthat, as with other membership functions described herein, an embodimentmay use other membership function definitions in accordance with aparticular embodiment and associated conditions as may be determined,for example, using empirical testing or through other ways of obtainingdata, such as real-time data gathering, simulation, and the like.

It should be noted that in 5516, the temperature inaccuracy of a sensorused in one embodiment and the temperature uniformity across the bay arelow enough so that the three defined regions never overlap. In oneembodiment, a temperature sensor used may have an inaccuracy ofapproximately 1 or 2 degrees and a distribution error of 10 degrees orless using the above partition. A worst case may be, for example, whenthe sensor reading is around 30 degrees in such case the “low” and“large” fuzzy sets may be fired but with a very low degree of membership(i.e. 0.1 compared to 1 for the “medium” fuzzy set). Other embodimentsmay use different membership functions in accordance with differentsensors and factors associated therewith.

The third input that may be used in one embodiment is frame intensityinformation. The intensity information is one type of frame intensityinformation that may be used in an embodiment. The absolute average graylevel at the local mask centered on the opposite light of a camera maybe obtained and used in one embodiment after subtracting a backgroundimage from the frame at hand. The absolute average gray level is anefficient descriptor of any change in the scene and may be representedby:

$\begin{matrix}{{\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}} & (8)\end{matrix}$where:

P(i, j; t) is the pixel value of the actual frame at location (i,j) andtime t;

P_(Ref)(i, j; t₀) is the pixel value of the reference frame (i.e.background) at time 0; and

N_(m) and M_(m) are the dimensions of the local mask (e.g., that may bearound entire frame, or a portion thereof) dimensions.

In this example, the pixel value is defined as the intensity level (i.e.between 0 (black) and 255 (white)) of the frame of interest at thedesignated pixel coordinates (i,j) and time (t). Note that applying theabsolute value at the pixel-difference of interest may be used toaccount for any change in the image intensity, for example, such aswhether such change is positive or negative. The absolute valueconsideration avoids situations where changes in the frame intensity maynot be reflected in the average frame intensity value. One such exampleis when the frame exhibits an intensity increase in one part and anintensity decrease in another part. This is the case, for instance,where both phenomena of light scattering (i.e. increasing intensity) anddimming (i.e. decreasing intensity) are observed at the diagonal oropposite lighting view, or the case of smoke moving or fire flickeringin the near or pilot view.

In using the foregoing in an embodiment, one embodiment may use a smallsubset of the intensity information (i.e. first order approximation atthe opposite light of one camera). High order gray level intensitystatistics (e.g. standard deviation), optical flow statistics, and manyother features computed at multiple views and multiple cameras may beused to further improve system performance.

It should be noted that one or more different views may be preferred foruse with a particular feature. For example, the absolute average greylevel, as described herein, may be used in connection with an image, orportion thereof, obtained using the opposite or diagonal lighting view.

Referring now to FIG. 80, shown is a graphical illustration 5518 of oneembodiment of the frame intensity membership functions. The membershipfunctions in 5518 use the feature variable “frame-intensity” with auniverse of discourse of (0 15) gray levels. This means that maximumabsolute value of the average of frame difference of mask centered onthe opposite light is 15 degrees. Any value encountered outside thisinterval in this example is interpolated using the appropriatemembership function. However, an embodiment may also make sure that anyvariable outside the universe of discourse is interpolated correctlyusing an explicit definition of the membership function defined over alarger set of the university of discourse. An embodiment may also useother values and other membership functions that as described herein.Additionally, an embodiment may use one or more other feature valuesbased on intensity information.

The frame intensity membership functions in the embodiment 5518 aredefined with accountability for the vagueness and variability of theintensity information and its indication of a fire event. Under variousconditions that are related to the fire type, fire location, cameraview, ventilation, and other factors, the frame intensity may bedescribed with either one of fuzzy sets (i.e. “low”, “medium”, or“large”) at the same time depending on the severity of the fire case andthe targeted primary smoke detection alarm to beat. For instance, if theabsolute average of the local intensity of the frame difference of theopposite lighting view is 5 gray levels, with reference to 5518, thisinformation is interpreted simultaneously as the frame intensity is“low” with a degree of belief (or membership) of 0.39, “medium” with adegree of belief of 0.85, and “large” with a degree of belief of 0.19.An embodiment may also further define the optimal shape and boundariesof each membership function.

In one embodiment of a fire verification/detection system, a 2-stateoutput may be utilized:

“confirm” in case of fire situation and “unconfirm” in case of a falsealarm. There is no answer in between.

For this reason, the output is portioned into fuzzy sets: “Confirm” and“Unconfirm”. Referring now to FIG. 81, shown is an example of agraphical illustration of confirm and unconfirm membership functionsthat may be used in an embodiment. Note that the two membershipfunctions of 5520 are designed in a way to have only a small area ofoverlap so that a “sharp” jump between the probability of “confirm” and“unconfirm” is realized. Other embodiments may use other membershipfunctions than as described herein.

It should be noted that the final defuzzified system output is a realnumber between 0 and 100% expressing the probability of confirmation offire condition. The defuzzified output is a representation of the finalaggregated fuzzy output set using the “centroid” defuzzification methodas follows,

$\begin{matrix}{{{Probability}\mspace{14mu}{of}\mspace{14mu}{confirmation}} = \frac{\sum\limits_{i = 1}^{N}\;{{\,_{i}i} \times {{area}(i)}}}{\sum\limits_{i = 1}^{N}\;{{area}(i)}}} & (9)\end{matrix}$where:

area(i) is the membership function of the aggregated fuzzy outputfunction at the time sample i;

N is the number of time samples defined by the final fuzzy output shapeand the sampling period (i.e. to digitally represent the final outputmembership function). An embodiment may use other types ofdefuzzification methods and associated formulae as well known anddescribed, for example, in Roychowdhury S. An inquiry into the theory ofdefuzzification, Physica-Verlag GmbH Heidelberg, Germany 2001.

In this embodiment, the final confirmation signal is Confirm if and onlyif the Probability of confirmaton≧60%; otherwise Unconfirm. Otherembodiments may also use other threshold probabilities as may bedetermined in connection with system criteria, such as, for example,tolerance for false positives, and the like.

As described elsewhere herein, fuzzy inference may be characterized as astrong feature of fuzzy logic where the relation between the input andthe output is structured into a set of intuitive and natural if-thenrules expressing the physical and flexible input-output relationship ofthe fuzzy system. One embodiment of a fuzzy inference engine having 3inputs and one output that may be used in a fire detection andverification system is represented in FIG. 82. The fuzzy inferenceengine 5522 is a representation of one embodiment as described herein.The three inputs 5524 a-5524 c are processed using fuzzy logictechniques in accordance with the set of rules 5526 to determine aprobability of confirmation 5528. The probability of confirmation iscompared to a threshold level of probability in order to make adetermination as to whether a smoke or fire condition exists. The fuzzyinference engine 5522 in combination with processing to compare theprobability of confirmation to a threshold and produce a signalrepresenting a fire or non-fire condition is referred to herein as aFuzzy Smoke Detector (FSD).

In one embodiment, there are 30 if-then rules that are designed todefine the fire detection and verification decision making unit via thefuzzy inference engine:

-   1. If (RH is “Dry”) AND (Temp is “Low”) AND (F-intensity is “Low”)    then (Prob-Confirm is “Unconfirm”)-   2. If (RH is “Dry”) AND (Temp is “Low”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Confirm”)-   3. If (RH is “Dry”) AND (Temp is “Low”) AND (F-intensity is “Large”)    then (Prob-Confirm is “Confirm”)-   4. If (RH is “Dry”) AND (Temp is “Medium”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Unconfirm”)-   5. If (RH is “Dry”) AND (Temp is “Medium”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Confirm”)-   6. If (RH is “Dry”) AND (Temp is “Medium”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   7. If (RH is “Dry”) AND (Temp is “Large”) AND (F-intensity is “Low”)    then (Prob-Confirm is “Confirm”)-   8. If (RH is “Dry”) AND (Temp is “Large”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Confirm”)-   9. If (RH is “Dry”) AND (Temp is “Large”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   10. If (RH is “Dry”) AND (Temp is “Large”) then (Prob-Confirm is    “Confirm”)-   11. If (RH is “Dry”) AND (F-intensity is “Large”) then (Prob-Confirm    is “Confirm”)-   12. If (RH is “Humid”) AND (Temp is “Low”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Unconfirm”)-   13. If (RH is “Humid”) AND (Temp is “Low”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Unconfirm”)-   14. If (RH is “Humid”) AND (Temp is “Low”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   15. If (RH is “Humid”) AND (Temp is “Medium”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Unconfirm”)-   16. If (RH is “Humid”) AND (Temp is “Medium”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Unconfirm”)-   17. If (RH is “Humid”) AND (Temp is “Medium”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   18. If (RH is “Humid”) AND (Temp is “Large”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Confirm”)-   19. If (RH is “Humid”) AND (Temp is “Large”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Confirm”)-   20. If (RH is “Humid”) AND (Temp is “Large”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   21. If (RH is “Foggy”) AND (Temp is “Low”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Unconfirm”)-   22. If (RH is “Foggy”) AND (Temp is “Low”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Unconfirm”)-   23. If (RH is “Foggy”) AND (Temp is “Low”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   24. If (RH is “Foggy”) AND (Temp is “Medium”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Unconfirm”)-   25. If (RH is “Foggy”) AND (Temp is “Medium”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Unconfirm”)-   26. If (RH is “Foggy”) AND (Temp is “Medium”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   27. If (RH is “Foggy”) AND (Temp is “Large”) AND (F-intensity is    “Low”) then (Prob-Confirm is “Confirm”)-   28. If (RH is “Foggy”) AND (Temp is “Large”) AND (F-intensity is    “Medium”) then (Prob-Confirm is “Confirm”)-   29. If (RH is “Foggy”) AND (Temp is “Large”) AND (F-intensity is    “Large”) then (Prob-Confirm is “Confirm”)-   30. If (Temp is “Large”) then (Prob-Confirm is “Confirm”)

Any statement here may be characterized as “relatively true” dependingon the degree of the membership function at hand. Note that rules (11)and (30) reflect the system design to deal respectively with TF2-typesof fire and TF6-types of fire. Note also that rule (23) is designed toconfirm smoke even if it is foggy provided that the temperature ismedium or large. In fact, each and every rule represents a statementdescribing the expected system output based on a “vague” description ofsensor readings.

As described herein, one embodiment of the foregoing fuzzy inferencesystem may include the following:

-   -   Comprise 30 rules described above    -   Use the “min” method to implement the “AND” operator min    -   Use the “max” method to implement the “OR” operator min    -   Use the “min” method to implement the “Imp” operator (i.e. rules        implication)    -   Use the “max” method to implement the “Agg” operator (i.e. rules        aggregation)    -   Use the “centroid” method to implement the “Defuzzification”        operator

Using the foregoing, following is an example. Different applicable rulesmay be aggregated to estimate a probability of confirmation of 61.4% inthe case of RH value of 62%, temperature value of 48 (C), and absoluteaverage frame intensity of 8.43 (gray levels). In this instance, theprobability of smoke confirmation in case of a primary smoke alarm is61.4%. The centroid output (i.e. 0.614) may be computed after digitizingthe universe of discourse of the aggregated output fuzzy set into 100samples. If a confirmation threshold of 60% is used, the foregoingexample situation is declared by the FSD utilizing the techniquesdescribed herein, as a genuine fire case.

For better understanding of the output decision hyper-surfaces of thefuzzy inference engine as described and used herein, the unique systemoutput (i.e. probability of confirmation) is plotted versus the inputvariables. Because system inputs are more than two in the embodimentdescribed herein, one input may be fixed as a reference (at 4 differentvalues) while the other two inputs will vary along their universes ofdiscourses. This presentation illustrates, for example, monitoring andverifying the system inference system as it is defined by the set ofrules and the membership functions.

Referring now to FIGS. 83-86, shown are example illustrations of thesystems decision surface at fixed frame intensities of 3, 6, 9, and 15gray levels, respectively. Referring to FIG. 83, note that at low graylevel values (i.e. 3 gray levels are assumed to be within the vibrationlevels), the FSD will be triggered only if the temperature is “large”enough (i.e. >50 C). Also note that the probability of confirmation ishigher when the no fog (i.e. RH<50%) is present. The vertical andhorizontal lines (i.e. “bumps”) reflect the overlap regions at variousmembership functions. If more smooth transition between decision areasis desired in an embodiment, membership functions other than “Gaussian”shapes may be used.

Referring now to FIG. 84, as the gray level is raised slightly (i.e. 6instead of 3 gray levels), the probability of confirmation increases tomore than 60% given that no fog is present.

Referring now to FIGS. 85-86, an intensity value of 9 gray levels orhigher, “saturates” the system decision making it to confirm fire evenif such change in frame intensity is due to fog (i.e. conservativeapproach).

Referring now to FIGS. 87-90, illustrated is the decision surface atfixed temperatures of −20, 10, 40, and 70 degrees Celsius, respectively.Note that the FSD confirmation probability increases with the frameintensity and decreases in the presence of fog. At high temperature(TF6-type fires), the system is in a “saturated” confirmation mode.

Referring now to FIGS. 91-93, shown are graphical illustrations of thedecision surface at fixed RH values of 40, 70, and 100%, respectively.Note that the FSD confirmation probability increases with the frameintensity if the RH is “low” since any intensity increase in a “dry” baymay be attributed to smoke (or to a less extent to dust). As expected,the confirmation probability decreases in the presence of fog. If thetemperature is “high” the system confirms any alarm regardless of theother sensor readings (i.e. rule 30).

An embodiment may use the foregoing techniques to evaluate performanceof a system using the foregoing fuzzy logic inference engine incomparison to a smoke detector, or other device. The system, such as afire detection and verification system that may be used within a cargobay area of an aircraft, may use the fuzzy logic inference engine inconnection with smoke detection and verification alone or in combinationwith other techniques described herein.

It should be noted that in connection with this and other examplesherein, one of the system's performance criteria may be to detect a firecondition prior to a smoke detector. It should be noted that anembodiment may also use any one or more other types of smoke indicatorsand/or measuring apparatus with an appropriate threshold against whichperformance of the system using the fire detection and verificationtechniques described herein may be measured. In addition to a smokedetector, an embodiment may also use, for example, a MIREX-baseddetector, a particle counter, a density counter, or other indicatormeasuring a dimension of the presence of smoke.

In obtaining the features related to image data, an embodiment may use adiagonal or opposite lighting view for frame intensity indication. Anembodiment may also include a varying number of sensors. In oneembodiment, for example, at least 2 temperature sensors and 2 humiditysensors may be used. Readings of the two or more sensors may beaveraged. It should be noted that an embodiment may also perform downsampling such as, for example, down-sample the data gathered from thesensor 1 sample per second to 1 sample per 6 seconds to accommodate theslow rate (after video cut) of the video data that may be used in anembodiment.

An embodiment using the absolute value to the image difference as afeature as described herein may eliminate use of a “hot spot” detectiontechnique as may be used with the dark view. It should be noted that thesharp transition between low and high “probability of confirmation”, asillustrated in FIG. 81, provides information regarding the ambiguitythat may occur if a system relies directly (or via means other thanfuzzy logic) on fluctuating sensor readings.

It should be noted that an embodiment may use the foregoing techniquesfor the inclusion of multiple features with multiple views from multiplecameras and other sensor readings in addition to those described herein.The use of the logical OR operator may be specified in the rules toinclude the additional conditions.

It should be noted that an embodiment may include as inputs to the fuzzyinference engine one or more features described elsewhere herein inconnection with detection and discrimination of fire and non-fireconditions including, for example, dust, fog, and the like. Anembodiment may tune or adjust membership functions in accordance withone or more system performance criteria including, for example, properlydetecting all fire conditions while minimizing the number of falsealarms such as those caused by, for example, dust, and fog. For example,in order to minimize the number of false alarms, an embodiment mayadjust one or more membership functions to increase the area of overlapbetween classifications causing several rules to be fired to resolveambiguities. With reference to FIG. 80, for example, an embodiment mayincrease the area under the MEDIUM curve causing increased overlap withthe LARGE and LOW curves. Accordingly, rules will be invoked in moreinstances to resolve the ambiguity as indicated by the overlap of thecurves. In order to not miss any fire conditions, an embodiment maywiden the LARGE membership functions while contracting the MEDIUM andLOW membership functions. The membership functions may be adjusted tomake the universe of discourse extend beyond that of one or morenon-fire conditions, such as those associated with dust.

An embodiment may also adjust one or more membership functions inaccordance with an accuracy of one or more sensor readings. For example,an embodiment using a RH sensor that is not accurate may use amembership function with only 2 curves corresponding to 2 classes orconditions such as illustrated in FIG. 77. In contrast, an embodimentwith more accurate RH sensors may use a membership function asillustrated in FIG. 76. In the event that an embodiment uses curves,such as those of FIG. 76 for the membership functions of one input, thecurves may be adjusted to increase the amount of overlap in the eventthe inaccuracy of a sensor increases.

It should be noted that an embodiment may also examine over time, suchas 3 or 4 samples, or a few seconds, the “probability of confirmation”signal in dust cases as compared to fire cases in order to determinewhether a fire condition exists. In other words, a trend analysis may beperformed using multiple probability of confirmation signals producedusing the techniques described herein. If there is a great difference,an isolated spike, of the probability of confirmation, this may indicatea non-fire condition. On the other hand, if the probability ofconfirmation consistently exceeds a predetermined threshold level for apredetermined number of samples, time period, and the like, this may beused to indicate a fire condition.

It should be noted that an embodiment may use the RH information todetect fog and to account for that in the final decision regarding afire condition. An embodiment may consider the existence of fog for veryhigh values of RH (e.g. greater than 98%). It should be noted that itmay be preferable that membership functions be adjusted in an embodimentto reflect properties of the “fuzziness” caused by sensor inaccuracies,field noise, and phenomena (i.e. smoke, fire, fog, dust,) variability,and various bay configurations.

It should be noted that the foregoing describes using fuzzy logic fordecision making in general with application to the system for fireverification and detection as may be used in cargo bays in particular.The techniques described herein may be used in other embodiments besidesfor use within a fire detection and/or verification system of a cargobay. As fuzzy logic is suited to deal with complex applications that arebased on “imprecise” data, smoke detection via multiple sensors is onlyone possible application of the techniques described herein. Prognosticsand diagnostics of various aircraft systems may be characterized as goodcandidates for fuzzy logic due to the vague and scarce data.

The foregoing uses 3 variables: average image intensity of the oppositelight of one camera, relative humidity, and temperature. The foregoingmay be used an embodiment with variations, such as optimizations andcombining the foregoing with other fire detection techniques. Forexample, an embodiment may use other techniques in connection withproviding for early fire detection and a robustness vis-à-vis falsealarm cases related to dust and fog. An embodiment may also use othertechniques to properly confirm additional dust cases. Some are describedelsewhere herein. Such techniques include, for example, trends (i.e.fluctuations) of the “probability of confirmation” signal. It should benoted that temperature and RH may be characterized as almost“irrelevant” in dust detection since the temperature and the RH keptremain relatively constant

The FSD described herein provides a flexible technique that is easy toimplement and to test with various sensor designs (e.g. RH sensor) anddifferent decision making strategies. The techniques described hereinmay also be used with other prognostics/diagnostics application such as,for example, in connection with wire diagnostics which may be used inconnection with monitoring the condition, state, and health of aircraftcomponents.

Referring now to FIG. 94, shown is an example 5560 of how the FSD outputmay be used in connection with other system components. The FSD mayinclude hardware and/or software to implement the techniques describedherein. The FSD 5562 may process one or more inputs and produce anoutput signal 5568 a. There may be another smoke or fire detector 5564that produces an output signal 5568 b. Signals 5568 a and 5568 b mayindicate whether there is a fire or non-fire condition detected by therespective component. The system output 5566 may be produced bylogically ANDing the signals 5568 a and 5568 b. An embodiment may alsologically OR the signals 5568 a and 5568 b to produce the output 5566.An embodiment may also include additional components than as shown in5560. Each of the additional components may produce an output signalthat is combined with those shown in 5560, or used as inputs into 5562.The output 5566 may also be an intermediate output to another componentproducing a final system output.

Referring now to FIG. 95, shown is another example of how the FSD outputmay be used in connection with other system components for firedetection and/or verification. In 5570, a fire or smoke detector 5564produces an output signal 5574 a which is an input to the system andfire condition processing module 5572 and the FSD 5562. In 5570, the FSDmay be enabled when the signal 5574 a indicates a fire condition. TheFSD in this configuration may be characterized as verifying the firecondition signal 5574 a and produces as an output signal 5574 bindicating one of a fire or a non-fire condition. The system firecondition processing module 5572 takes as inputs 5574 a and 5574 b andproduces a system output 5566 in accordance with the two inputs. Module5572 may logically OR the input signals, or logically AND the inputsignals to produce output signal 5566.

The foregoing arrangements 5560 and 5570 are example configurations ofcomponents that may be included in a fire verification and detectionsystem. An embodiment may use the fuzzy logic techniques describedherein for fire detection and/or verification in other configurationsand with other variations. In one embodiment the FSD may be used as theprimary or the sole smoke detector.

The techniques described herein may be used for fire detection in otherlocations as well as for other applications besides fire detectionand/or verification. The use of fuzzy logic techniques as describedherein in which a feature is based on image data may be used, forexample, in vision-based applications including, but not limited to,aircraft ground security, pilot alertness monitoring, cabin passengermonitoring, monitoring of aircraft body parts for safety enhancement(e.g., wheel wells and landing gear, such as to look for closure and hotspots, engine nacelle, battery compartment, oxygen generatorcompartment, and the electronics compartment), and aircraft taxiing,parking, and moving assistance (e.g., radar and communicationscompartment, flaps and access door positions, actuator movements, andwings, such as to look for wing icing).

Two types of smoke detectors that are used are optical detectors andionization detectors, which detect the presence of aerosols—eitherthrough attenuation of light signal or ionization measurement. In someinstances, it is possible for smoke alarms to incorrectly signal thepresence of a fire because of the presence of non-fire conditions thatmimic the presence of smoke. The system described herein may be used fordetection and verification of fire in aircraft cargo bay in ways thatdiscriminate between fire conditions like smoke and other conditions,such as chick feathers and other similar airborne morsels, that couldcause a false smoke alarm signal to incorrectly indicate the presence offire. Reducing the false smoke alarm rate is beneficial both from safetyand economic point of view.

Feathers may appear within a cargo compartment when carrying chicken andbirds, in particular newly hatched chicks. Similar morsels, such aspaper or clothing pieces, are also known to be a source for falsealarms. The system described herein provides for discriminating betweenfeathers and fine aerosols, in particular smoke. Indications that arecorrelated with the spotty distribution of feathery scenes that stand incontrast to the smooth distribution of scenes with smoke, fire, fog,dust, and alike are captured.

As described in more detail below, segmenting the scene into differentconnected regions may provide an efficient feature that is closelyrelated to the density of feathers. One feather (or few overlapping eachothers) by itself can create a spot (an isolated region of connectedpixels) or an isolated segment on the scene, whereas a whole wave orplume of fine aerosols is needed to create a spot in the scene. A givenpixel is “connected” to the pixel of interest if the former pixel“belongs” to the set of neighboring pixels of the pixel of interest.Different techniques that may be used in determining connected pixelsare described elsewhere herein. See, for example, FIG. 44 and relatedtext.

The presence of smoke and similar fine aerosols, such as fog and dust,obscures the scene and thus tends to make the number of isolated spotsdecrease as the scene becomes grayer and grayer. In contrast, thepresence of feathers tends to increase the number of spots as morefeathers get spread in the scene. Based on a stream of video images ofthe cargo bay, specific image features are identified to allow diagnosisthat feathers and alike morsels are present within an enclosed area,such as a cargo bay. In one embodiment, if the primary smoke detectionsystem issues an alarm, the vision based system may provide informationto the pilot that the recorded data is consistent with formation offeathers, and provide a likelihood that the smoke alarm was a falsealarm.

Referring to FIG. 36, the combination of cameras 2504 a, 2504 b,lenses/filters 2510 a, 2510 b, and lights 2502 a-2502 n, 2508 a, 2508 bmay be used to acquire data as described elsewhere herein. In anembodiment described herein, the camera 2504 a acquires data using thelight 2508 a associated therewith the other lights 2508 b, 2502 a-2502 nbeing off while the camera 2504 b acquires data using the light 2508 bassociated therewith the other lights 2508 a, 2502 a-2502 n being off.Of course, other combinations of the lights 2508 a, 2508 b, 2502 a-2502n may be used. In addition, arrangements other than the arrangement 2500shown in FIG. 36 may also be used. For example, light from the adjacentside walls, or from the ceiling of the cargo bay may be used. Todistinguish between smoke and non-fire conditions that appear to besmoke to a smoke detector, it is useful to have some lighting present.Images taken with no illumination (e.g. for hot spot or flame detection)may not be as useful.

For the system described herein, the light 2508 a, lens/filter 2510 a,and the camera 2504 a are matched so that the scene may be illuminatedwith a source that matches, at least partially, response characteristicof the camera 2504 a while the light 2508 b, lens/filter 2510 b, and thecamera 2504 b are matched so that the scene may be illuminated with asource that matches, at least partially, response characteristic of thecamera 2504 b. For example, if the camera 2504 a is a CCD or CMOScamera, the combination of the light 2508 a and the lens/filter 2510 amay cause visible light to reach the camera 2504 a. As another example,if the lens/filter 2510 a blocks visible light and passes onlynear-infra-red light, the light 2508 a may include near-infra-redcomponent and the camera 2504 a may be sensitive to near-infra-redlight. The camera 2504 a, the lens/filter 2510 a and the light 2508 acombination may have different response characteristics from the camera2504 b, the lens/filter 2510 b, and the light 2508 b combination or theresponse characteristics may be the same or similar.

Different lighting sources may be continually switched on and off inorder to obtain different views of the scene such that consecutive videoframes may correspond to different lighting conditions. The video framesanalyzed by the system described herein correspond to the same lightingconditions although the techniques described herein may be used withother lighting conditions. In one embodiment, the same identificationtechnique is used on two or more different sub-sequences correspondingto different lighting conditions. In some embodiments, feathers andalike may be more discernible with one particular lighting scheme thanwith another. The techniques described herein apply edge detection andimage segmentation to characterize feather-like morsels and subsequentlydistinguish them from fine aerosols including smoke, fire, fog, anddust. The diagnoses reached from different extracted sub-sequences maybe fused within a data fusion scheme using, for example, fuzzy logic,Bayesian decision, and the like, as described elsewhere herein.

Referring to FIG. 96, a background image 6010 is captured with acontainer in front of the camera in a simulation of a small gap (e.g.2-inches) in a cargo bay filled with containers. The background image6010 may represent an image taken at time zero and may contain no smokeor anything else that is likely to cause a smoke alarm to issue analarm. The background image 6010 of FIG. 96 (and subsequent images,described below) may be taken by the same camera at the same scene andcomparably processed (e.g. frame rate of 13 fps, image size of 480×640pixels, and 256 gray levels). Of course, the system described herein mayuse different parameters and, in addition, different images taken atdifferent times may use some or all parameters different from eachother. The particulars described herein are for purposes of example onlyand should not be construed as a limitation.

Referring to FIG. 97, an image 6020 illustrates the result of applyingedge estimation techniques to the background image 6010 of FIG. 96. Theimage 6020 represents visual edges/contrasts in the image 6010 of FIG.96. The particular technique illustrated in the image 6020 representsedges determined with a conventional edge detection technique, such asdescribed in Gonzalez, R. C. and Woods, R. E. Digital Image Processing.Prentice Hall, New Jersey 2001, that uses a Sobel operator having athreshold of ten. Once the edges are detected, it is possible todetermine the number of segments and label them using conventionaltechniques, such as techniques described in Haralick, Robert M., andLinda G. Shapiro, Computer and Robot Vision, Volume I. Addison-Wesley,1992. pp. 28-48. In other embodiments, it may be possible to determineand count the number of segments without first explicitly detectingedges.

Referring to FIG. 98, an image 6030 shows a frame of the scene of FIG.96 captured after spreading some feathers in the area being shown. Thearea being shown by the image 6030 is the same area as being shown bythe image 6010 of FIG. 96.

Referring to FIG. 99, an image 6040 illustrates the result of applyingedge estimation techniques to the image with feathers 6030 of FIG. 98.The image 6040 represents visual edges/contrasts in the image 6030 ofFIG. 98. The particular technique illustrated in the image 6040represents edges determined with a conventional edge detection techniquethat uses a Sobel operator having a threshold of ten such as the onedescribed in Gonzalez, R. C. and Woods, R. E. Digital Image Processing.Prentice Hall, New Jersey 2001. Once the edges are detected, it ispossible to determine the number of segments and label them usingconventional techniques, such as techniques described in Haralick,Robert M., and Linda G. Shapiro, Computer and Robot Vision, Volume I.Addison-Wesley, 1992. pp. 28-48. In other embodiments, it may bepossible to determine and count the number of segments without firstexplicitly detecting edges.

Referring to FIG. 100, an image 6050 is shown that corresponds to asmoky scene after smoldering a card box behind a container for aboutfour minutes. The image 6050 represents visual information due in partto the background content and to the smoke introduced into the areawhile burning the box. The density of smoke makes the view relativelysmooth gray without a lot of isolated segments.

Referring to FIG. 101, an image 6060 illustrates the result of applyingedge estimation techniques to the image 6050 of FIG. 100. The image 6060represents visual edges/contrasts in the image 6050 of FIG. 100. Theparticular technique illustrated in the image 6060 represents edgesdetermined with a conventional edge detection technique that uses aSobel operator having a threshold of ten such as the one described inGonzalez, R. C. and Woods, R. E. Digital Image Processing. PrenticeHall, New Jersey 2001. Once the edges are detected, it is possible todetermine the number of segments and label them using conventionaltechniques, such as techniques described in Haralick, Robert M., andLinda G. Shapiro, Computer and Robot Vision, Volume I. Addison-Wesley,1992. pp. 28-48. In other embodiments, it may be possible to determineand count the number of segments without first explicitly detectingedges.

The number of segments per frame for a scene containing feathers or thelike may be much more than the number of segments of other scenes withfines aerosols (i.e. smoke, fog, and dust). The number of segments maybe used as one feature to discriminate between feathers-like morsels andfine aerosols. It is also possible to use detailed filtering, pruning,thickening, and enhancement processing to further enhanceidentification. In one embodiment, the number of segments may be used asa discriminator while in another embodiment, only the number of closedsegments may be used.

Referring to FIG. 102, a flow chart 6200 illustrates steps performed inconnection with the system described herein. Processing begins at afirst step 6202 where a background image is obtained. The backgroundimage obtained at the step 6202 is like the background image 6010illustrated above in FIG. 96. Following the step 6202 is a step 6204where the number segments of the background image is determined. Asdiscussed above, in some embodiments, the edges are first determinedprior to determining the number of segments. The edges are like theedges illustrated in the image 6020 of FIG. 97.

Following the step 6204 is a step 6206, where a current image isobtained. The current image obtained at the step 6206 is obtained aftersome time has elapsed since obtaining the background image at the step6202. The image obtained at the step 6206 is like the images 6030, 6050discussed above in connection with FIGS. 98 and 100.

Following the step 6206 is a step 6208 where the number of segments ofthe current image is determined. As discussed above, in someembodiments, the edges are first determined prior to determining thenumber of segments. The edges are like the edges illustrated in theimages 6040, 6060 of FIGS. 99 and 101.

Following the step 6208 is a step 6212 where a criteria is calculated todetermine if the scene contains feathers (or the like). In an embodimentherein, the criteria equals the number of segments in the current imagesubtracted from the number of segments in the background image. Othercalculations for the criteria calculated at the step 6212 may be used,including use of standard deviation and the gradient intensity asdescribed elsewhere herein. A relatively high value of standarddeviation is a further indication of the presence of feathers. Incontrast, a low value is indicative of the presence of smoke that mayprovide a smooth and gray distribution across the scene. The randommotion of feathers may yield relatively high values of the gradientintensity and its standard deviation as well as its higher statistics.

Following the step 6212 is a test step 6214 which determines if thecriteria determined at the step 6212 is greater than a predeterminedthreshold. In an embodiment disclosed herein, it is determined at thestep 6214 if the difference in number of segments determined at the step6212 is greater than a predetermined threshold. The threshold used atthe step 6214 may be set by empirical means and depends, at least inpart, upon the type of edge detection and segmentation algorithms usedas well as image settings (e.g., lighting, camera resolution, gainsetting, etc). If other criteria are used, then different determinationsmay be made at the step 6214, including any of the appropriateprocessing described elsewhere herein.

If it is determined at the step 6214 that the criteria exceeds thepredetermined threshold, then control passes from the step 6214 back tothe step 6206 to obtain new data for processing. Jumping from the step6214 to the step 6206 represents the current image containing feathersor the like. For example, when the criteria corresponds to thedifference in number of segments between the background image and thecurrent image, the current image having a significant number of moresegments than the background image may indicate that the current imagecontains feathers (or the like) and therefore no further processing ofthe current image is necessary.

If it is determined at the test step 6214 that the criteria is notgreater that the predetermined threshold, control passes to a step 6216,where appropriate follow on processing, including many of the techniquesdescribed herein, is performed to determine the presence of smoke. Forexample, the step 6216 and/or the step 6214 may represent passing asignal (e.g., the number of segments) to one or more of the data fusiontechniques described herein.

In some embodiments, the background image may not be necessary for theanalysis. In such a case, trend analysis of the number of segments(labels) over time can provide information about eventual presence offeathers or the like in the scene. For instance if the number ofsegments within the scene increases steadily, then the likelihood offeathers and the like being in the scene is high. On the other hand, ifthe number of segments (labels) decreases steadily, the scene is mostlikely contaminated by smoke and the like.

Referring to FIG. 103, a flow chart 6250 illustrates steps performed inconnection with an alternative embodiment of the system describedherein. Processing begins at a first step 6252 where a current image isobtained. The current image obtained at the step 6252 is like the images6030, 6050 discussed above in connection with FIGS. 98 and 100.

Following the step 6252 is a step 6254 where the number of segments ofthe current image are determined. As discussed above, in someembodiments, the edges are first determined prior to determining thenumber of segments. The edges are like the edges illustrated in theimages 6040, 6060 of FIGS. 99 and 101.

Following the step 6254 is a step 6256 where a criteria is calculated todetermine if the scene contains feathers (or the like). In an embodimentherein, the criteria equals the rate of change of the number of segmentsin the current image over time (i.e., over a sequence of images). Othercalculations for the criteria calculated at the step 6256 may be used,including use of standard deviation and the gradient intensity asdescribed elsewhere herein. A relatively high value of standarddeviation is a further indication of the presence of feathers. Incontrast, a low value is indicative of the presence of smoke that mayprovide a smooth and gray distribution across the scene. The randommotion of feathers may yield relatively high values of the gradientintensity and its standard deviation as well as its higher statistics.

Following the step 6256 is a test step 6258 which determines if thecriteria determined at the step 6256 is greater than a predeterminedthreshold. In an embodiment disclosed herein, it is determined at thestep 6258 if the rate of change in number of segments determined at thestep 6256 is greater than a predetermined threshold. The threshold usedat the step 6258 may be set by empirical means and depends, at least inpart, upon the type of edge detection and segmentation algorithms usedas well as image settings (e.g., lighting, camera resolution, gainsetting, etc). If other criteria are used, then different determinationsmay be made at the step 6258, including any of the appropriateprocessing described elsewhere herein.

If it is determined at the step 6258 that the criteria exceeds thepredetermined threshold, then control passes from the step 6258 back tothe step 6252 to obtain new data for processing. Jumping from the step6258 to the step 6252 represents the current image containing feathersor the like. For example, when the criteria corresponds to the rate ofchange in number of segments in the current image, a relatively highrate of change (i.e., relatively increasing) may indicate that thecurrent image contains feathers (or the like) and therefore no furtherprocessing of the current image is necessary.

If it is determined at the test step 6258 that the criteria is notgreater that the predetermined threshold, control passes to a step 6262,where appropriate follow on processing, including many of the techniquesdescribed herein, is performed to determine the presence of smoke. Forexample, the step 6262 and/or the step 6258 may represent passing asignal (e.g., the number of segments) to one or more of the data fusiontechniques described herein.

In some embodiments, the total number of segments is used while in otherembodiments only certain types of segments are used such as segments ofa particular length or greater, segments of a particular length orsmaller, closed loop (or near closed loop) segments, segment of aparticular curvature or greater, segment of a particular curvature orsmaller, etc.

Referring to FIG. 104, a diagram 5640 illustrates a system in which acargo video control unit (CVCU) 5642 is coupled to a light and cameraarrangement 2500 like that illustrated in FIG. 36 and describedelsewhere herein. The light and camera arrangement 2500 includes theplurality of controllable lights 2502 a-2502 n, 2508 a, 2508 b and theplurality of cameras 2504 a, 2504 b. The CVCU 5642 provides controlsignals to the lights 2502 a-2502 n, 2508 a, 2508 b and the cameras 2504a, 2504 b that are used to detect fire, smoke, fog, etc. The cameras2404 a, 2504 b provide data signals to the CVCU 5642 which are processedas described elsewhere herein.

As discussed elsewhere herein, the combination of lights and cameras maybe used in a variety of ways so that, for example, there may be a firstlighting condition (pilot view/near view) where all lights are turnedoff except the light attached to the camera (e.g., the light 2508 b withthe camera 2504 b or the light 2508 a with the camera 2504 a), a secondlighting condition (overhead view) where all lights are turned offexcept for the overhead lights 2502 a-2502 n, a third lighting condition(opposite view/diagonal view/far view) where all lights are turned offexcept for an opposite light that is turned on so that, for example, thecamera 2504 b is used in connection with a light opposite thereto, suchas the light 2508 a, a fourth lighting condition where all lights areturned off (thermal view or dark view) and any other ones of a number ofother possible combinations of lights and cameras that provide a varietyof lighting conditions.

Optical filters may be used in the CFVS as described elsewhere herein toallow detection of hot spots using CCD cameras operating in the visualand near infra-red (NIR) spectral band. CCD arrays may display enoughsensitivity to NIR light to allow detection of hot spots in dark-fieldview (dark/thermal view). However, CCD arrays may also display muchhigher sensitivity to visible light, making complete darkness acondition for successful detection of hot spots through CCD cameras.Otherwise, the visible light may dominate the thermal effect making hotspot detection difficult.

Referring to FIG. 36, the lens 2510 a for the camera 2504 a may includea filter that filters out light in a particular band or set of bands,e.g. visible light. Similarly, the lens 2510 b for the camera 2504 balso includes a filter that filters out light in a particular band orset of bands, e.g. visible light. Use of appropriate optical filter mayallow eliminating visible light and performing hot spot detection as ifthe scene were completely dark. In a cargo bay environment, lighting mayinclude lights of the fluorescent kind, for example, having wavelengthsbelow approximately 800 nm. Other non-controllable light in the cargobay may also have wavelengths below approximately 800 nm. Thus, a filterblocking such light and allowing only wavelengths above approximately800 nm to be passed to the CCD array may simulate dark-field(dark/thermal view) conditions.

It is also possible to detect smoke and other aerosols using a CCDcamera with or without an appropriate filter. Detecting aerosols doesnot necessarily involve hot spot detection. Instead, appropriateillumination units may be used, with light emitted within the filter'spass band. Presence of aerosols within the enclosure of interest mayresult in that light being obscured and/or scattered, which in turn maybe detected by image processing techniques. By appropriately switchingthe illumination sources, different illumination scenarios may beobtained. This allows detecting various visual effects in imagesassociated with those illumination schemes. The data analysis techniquesdescribed elsewhere herein may be used to combine evidence about aerosolpresence obtained from those images. This allows faster and arguablymore reliable aerosol detection and discrimination. In particular, thepresence of smoke may be detected.

Referring to FIG. 36, each of the cameras 2504 a, 2504 b may be a CCDcamera. Each of the lights 2508 a, 2508 b associated with each of thecameras 2504 a, 2504 b may emit light in the NIR spectral band. Each ofthe lenses 2510 a, 2510 b for each of the cameras 2504 a, 2504 b mayinclude an optical filter that completely or nearly completely blocksvisual light (i.e., light having a wavelength below approximately 800nm). In an embodiment described herein, it is assumed that externalnuisance lighting (i.e. light not controlled by the system describedherein) does not have any NIR content, as is the case with, for example,fluorescent lighting used in cargo bays. In such a case, filters thatfilter out light below approximately 800 m cause the only light that theCCD arrays receive to be NIR light from the illumination units (e.g.,the lights 2508 a, 2508 b) controlled by the system described herein.These illumination units may be switched on and off appropriately by theCVCU 5642, so that consecutive frames captured by one or both of thecameras 2504 a, 2504 b (or other cameras) correspond to differentlighting conditions. In other embodiments, the lenses/filters 2510 a,2510 b may filter out other wavelengths of light.

In one embodiment, a particular illumination scheme may involve each ofthe cameras 2504 a, 2504 b being equipped with its own illuminationsource and each of the additional overhead illumination units 2502a-2502 n installed at the ceiling of the cargo bay. In this instance,the following lighting scenarios may be used:

-   -   a) Own lighting (pilot view/near view)—Illumination unit        collocated with the camera of interest is switched on, while all        other illumination sources are switched off.    -   b) Opposite lighting (far view)—One or more illumination unit on        the wall opposing the camera of interest is switched on, while        all other illumination sources are switched off.    -   c) Overhead lighting—Some or all illumination units located on        the ceiling are switched on, while all other illumination        sources are switched off.    -   d) No Lighting (thermal/dark view)—No illumination units are        switched on.    -   e) Total lighting—All illumination sources (all camera lights        and all overhead lights) are switched on.

In some embodiments, the thermal/dark view is not analyzed unlessfilters are also used. It should be noted that these and other lightingscenarios are described elsewhere herein. The foregoing illuminationschemes are described from the point of view of a single camera. Notethat one lighting scenario from the point of view of one camera may be adifferent lighting scenario from the point of view of another camera.For example, if the light 2508 a for the camera 2504 a is switched onand all other lights are switched off, this represents own lighting(pilot view/near view) from the point of view of the camera 2504 a andrepresents opposite lighting (far view) from the point of view of thecamera 2504 b. Note that if more than one opposite (far) or overheadillumination unit is available, then different variations of theselighting scenarios may be used in other embodiments.

As described elsewhere herein, switching of the lights may be performedunder the control of the CVCU 5642 or, alternatively, by individualcamera units (which may be synchronized), or some combination thereof.Images may be acquired by the cameras under each illumination schemedesired herein. Depending on the conditions in the cargo bay, it may bedesirable to acquire several consecutive frames under some or allillumination scenarios. Also, some of the illumination scenarios may beeliminated from the sequence, temporarily or permanently, as needed, forexample, in accordance with the embodiment and particular cargo bayconditions.

Referring to FIG. 105, a flow chart 5650 illustrates steps performed inconnection with acquiring data under various lighting scenariosdescribed herein. Processing begins at a first step 5652 where all ofthe lights 2502 a-2502 n, 2508 a, 2508 b are turned off. Following thestep 5652 is a step 5653 where the cameras 2504 a, 2504 b are activated.In some embodiments, the cameras 2504 a, 2504 b may be continuouslyacquiring data, so that the step 5656 (and similar steps) may representthe cameras providing the acquired data to follow on processing. Inother embodiments, the cameras 2504 a, 2504 b only acquire data when itis time to provide the data to follow on processing. In still otherembodiments, some cameras may continuously acquire data while othercameras acquire data intermittently. The particular data obtained at thestep 5653 represents a dark/thermal view.

Following the step 5653 is a step 5654 where the light 2508 a is turnedon. Following the step 5654 is a step 5656 where the cameras 2504 a,2504 b are activated. Activating the cameras 2504 a, 2504 b at the step5656 while the light 2508 a is on (from the step 5654) causes the camera2504 a to obtain an own lighting image (pilot view/near view) while thecamera 2504 b obtains an opposite lighting image (far view). Followingthe step 5656 is a step 5658 where the light 2508 a is turned off.Following the step 5658 is a step 5662 where the light 2508 b is turnedon. Following the step 5662 is a step 5664 where the cameras 2504 a,2504 b are activated. Activating the cameras 2504 a, 2504 b at the step5664 while the light 2508 b is on (from the step 5662) causes the camera2504 b to obtain an own lighting image (pilot view/near view) while thecamera 2504 a obtains an opposite lighting image (far view). Followingthe step 5664 is a step 5666 where the light 2508 b is turned off.

Following the step 5666 is a step 5668 where the overhead lights 2502a-2502 n are turned on. Following the step 5668 is a step 5672 where thecameras 2504 a, 2504 b are activated to obtain an overhead view.Following the step 5672 is a step 5674 where the lights 2508 a, 2508 bare turned on. Following the step 5674 is a step 5676 where the cameras2504 a, 2504 b are activated to obtain a total view. The data obtainedat the step 5676 represents data when all of the lights are on.

The steps of the flow chart 5650 may be executed in any order. It ispossible to eliminate some of the views and/or to use other views. It isalso possible to activate the cameras 2504 a, 2504 b in any order and/orat different times.

Analysis of changes in various intensity characteristics of imagescollected under these lighting scenarios allows drawing conclusionsabout presence of fog, smoke or dust. Details of image analysisalgorithms that should be used for such detection are describedelsewhere herein.

Use of the optical filter makes the fire detection system insensitive tonuisance light sources within the bay as long as their output does notspill into the pass band of the filter. Switching of different lightsources allows observing different scattering and absorption effects dueto aerosols within the enclosure, and consequently leads to fasterdetection.

In some instances, it may be difficult to control or predict thepresence of ambient light in the cargo bay. That is, there may be asource of light other than the controllable lights 2502 a-2502 n, 2508 aand 2508 b that are controlled by the CVCU 5642. Although it may also bepossible to filter out some types of ambient light, in other cases itmay be difficult to predict the frequency or wavelength of the ambientlight. For example, in some instances, the ambient light may be due tofluorescent or incandescent lights present in the cargo bay or may bedue to a door of the cargo bay being open, or may be due to any one of anumber of sources of light not controllable by the CVCU 5642. It isdesirable to be able to compensate for the unpredictable presence ofambient light so that the ambient light does not interfere with whateverlighting conditions are being used in connection with data collection.

Referring to FIG. 106, a flow chart 5710 illustrates steps performed inconnection with a first embodiment of a system for compensating forunpredictable ambient light. Processing begins at a first step 5712where an index variable, N, is set equal to one. The index variable N isused to iterate through the various lighting conditions. As discussedelsewhere herein, there may be a number of useful lighting conditions(e.g., overhead lighting, far view lighting, near view lighting, etc.)that are used in connection with the system described herein to detectfire, smoke, fog, etc.

Following the step 5712 is a test step 5714 where it is determined ifthe index variable, N, is greater than the number of lightingconditions, NCOND. If so, then processing is complete. Otherwise,control passes from the test step 5714 to a step 5716 where allcontrollable lights are turned off. Note that at the step 5716, thelights that are turned off are controlled by the CVCU 5642. As discussedelsewhere herein, there may be other sources of light in the cargo bay(either external or internal) over which the CVCU 5642 has no control.Accordingly, at the step 5716, the lights that are turned off are thelights over which the CVCU 5642 has control.

Following step 5716 is a step 5718 where a reference video frame, REF,is obtained. A reference frame is a video frame that is taken by therelevant one of the cameras 2504 a, 2504 b that will also be taking thevideo data frame or frames (described below). The reference frame, REF,is used to compensate for ambient light, as discussed elsewhere herein.

Following step 5718 is a step 5722 where the lights that correspond tolighting condition N are turned on. Thus, for example, if lightingcondition N corresponds to having all of the overhead lights 2502 a-2502n turned on, then the overhead lights 2502 a-2502 n are turned on at thestep 5722. Following step 5722 is a step 5724 where video frameFRAME[N], corresponding to lighting condition N, is obtained using theappropriate one of the cameras 2504 a, 2504 b. Note that FRAME[N] couldrepresent a single video frame, a plurality of video frames taken atdifferent times, a series of consecutive video frames, a plurality ofdifferent series of video frames, etc. In general, FRAME[N] representsthe video information used to provide the processing described herein.

Following the step 5724 is a step 5726 where compensation for ambientlight is performed by subtracting REF from FRAME[N]. Thus, followingstep 5726, FRAME[N] represents the signal attributable to the lightsturned on at the step 5722 with the contribution from ambient lightremoved.

Following the step 5726 is a step 5728 where the index variable, N, isincremented. Following the step 5728, control transfers back to the step5714 to perform the next iteration. Following the step 5728, controltransfers back to the step 5714, discussed above

Referring to FIG. 107, a flow chart 5740 illustrates an alternativeembodiment for compensating for ambient light. Processing begins at afirst step 5742 where an index variable, N, is set equal to one.Following the step 5742 is a test step 5744 where it is determined ifthe index variable, N, is greater than the number of lightingconditions, NCOND, that are being measured. If so, then processing iscomplete. Otherwise, control transfers from the test step 5744 to a step5746 where all lights controlled by the CVCU 5642 are turned off in amanner similar to that discussed above in connection with the step 5716.

Following the step 5746 is a step 5748 where a first reference frame,REF1, is obtained similar to obtaining the reference frame at the step5718, discussed above. Following the step 5748 is a step 5752 where theCVCU 5642 turns on the appropriate lights corresponding to lightingcondition N. Following the step 5752 is a step 5754 where a signalcorresponding to the frame at lighting condition N, FRAME[N], isobtained in a manner similar to obtaining FRAME[N] at the step 5724,discussed above.

Following the step 5754 is a step 5756 where all of the lightscontrolled by the CVCU 5642 are turned off. Following the step 5756 is astep 5758 where a second reference frame, REF2, is obtained. The secondreference frame obtained at the step 5758 may be different than thefirst reference frame obtained at the step 5748 due to changingconditions in the cargo bay. Obtaining the two reference frames, onebefore the frame N is taken and one after the frame N is taken, takesinto account the possibility that the ambient light conditions may bechanging and/or the conditions in the cargo bay are changing rapidly. Ininstances where there is a concern that the state of the cargo bay ischanging rapidly, REF1 may be obtained immediately before FRAME[N] andREF2 may be obtained immediately after FRAME[N].

Following the step 5758 is a step 5762 where FRAME[N] is compensated bysubtracting therefrom the average of the first and second referenceframes, (REF1+REF2)/2. Following the step 5762 is a step 5764 where theindex variable, N, is incremented. Following the step 5764, controltransfers back to the test step 5744, discussed above.

Referring to FIG. 108, a flow chart 5780 illustrates steps performed inconnection with an alternative embodiment for compensating for ambientlight. Processing begins at a first step 5782 where an index variable,N, is set equal to one. Following the step 5782 is a step 5784 where alllights controlled by the CVCU 5642 are turned off. Following the step5784 is a step 5786 where a value is obtained for a second referenceframe, REF2. The reason that the value is obtained for the secondreference frame at the step 5786 will become apparent in connection withthe discussion that follows.

Following the step 5786 is a test step 5788 where it is determined ifthe index variable, N, is greater than the number of lighting conditionsat which data is being taken. If so, then processing is complete.Otherwise, control transfers from the step 5788 to a step 5792 where afirst referenced frame, REF1, is set equal to the second referenceframe, REF2. Note that on the first iteration, it is useful to have thevalue of REF2 already set, which is why it is useful to execute thesteps 5784, 5786, discussed above.

Following the step 5792 is a step 5794 where the CVCU 5642 turns on thelights appropriate for the lighting condition N at which data is beingtaken. Following the step 5794 is a step 5796 where FRAME[N] is obtainedcorresponding to the lighting condition N set at the step 5794.Following the step 5796 is a step 5798 where all of the lightscontrolled by the CVCU 5642 are turned off. Following the step 5798 is astep 5802 where a new value for the second reference frame, REF2, isobtained. Following the step 5802 is a step 5804 where the value ofFRAME[N], obtained at the step 5796, is adjusted to compensate for thetwo reference frames by subtracting from FRAME[N] the average of the tworeference frames, (REF1+REF2)/2. Following the step 5804 is a step 5806where the index variable, N, is incremented. Following the step 5806,control transfers back to the step 5788, discussed above. The embodimentillustrated by the flow chart 5780 provides advantages. With theembodiment of the flow chart 5780, only one reference frame is obtainedper iteration while FRAME[N] is compensated using the reference frametaken before FRAME[N] is captured (i.e., REF1) and the reference frametaken after FRAME[N] is captured (i.e., REF2) just like in theembodiment of the flow chart of FIG. 107. This is accomplished by, atthe step 5792, setting the value of REF1 equal to the value of thesecond reference frame, REF2, taken at the previous iteration. Thus, foreach iteration, the value of REF1 is set equal to REF2, FRAME[N] isobtained, and then a new reference frame REF2 is obtained.

Referring to FIG. 109, a flow chart 5810 illustrates steps performed inconnection with an alternative embodiment for compensating for ambientlight. Processing begins at a first step 5812 where all lightscontrollable by the CVCU 5642 are turned off. Following the step 5812 isa step 5814 where a reference frame, REF, is obtained. Following thestep 5814 is a step 5816 where an index variable, N, is set equal toone.

Following the step 5816 is a test step 5818 where it is determined ifthe index variable, N, is greater than the number of lightingconditions, NCOND, at which measurements are being taken. If so, thenprocessing is complete. Otherwise, control transfers from the test step5818 to a step 5822 where the lights corresponding to lighting conditionN are turned on by the CVCU 5642. Following the step 5822 is a step 5824where FRAME[N] is obtained. Following the step 5824 is a step 5826 whereFRAME[N] is compensated by subtracting therefrom the reference frame,REF, obtained at the step 5814. Following the step 5826 is a step 5828where the index variable, N, is incremented. Following the step 5828,control transfers back to the test step 5818, discussed above.

The embodiment illustrated by the flow chart 5810 is efficient in thatthere is only one reference frame that is ever obtained throughmeasurement of all the lighting conditions. This embodiment is useful ininstances where it is not expected that the condition of the cargo baywill change too much as the system iterates through the differentlighting conditions.

Referring to FIG. 110, a flow chart 5840 illustrates steps performed inyet another embodiment for compensating for ambient light. Processingbegins at a first step 5842 where all lights controllable by the CVCU5642 are turned off. Following the step 5842 is a step 5844 where areference frame, REF, is obtained. Following the step 5844 is a step5846 where an index variable, N, is set equal to one.

Following the step 5846 is a test step 5848 where it is determined ifthe index variable, N, is greater than the number of lightingconditions, at which measurements are being taken. If so, thenprocessing is complete. Otherwise, control passes from the test step5848 to a step 5852 where appropriate ones of the lights correspondingto lighting condition N are turned on by the CVCU 5642. Following thestep 5852 is a step 5854 where FRAME[N] is obtained. Following the step5854 is a step 5856 where FRAME[N] is compensated by subtractingtherefrom the reference frame, REF. Following the step 5856 is a teststep 5858 which determines if a new reference frame is needed. Thecriteria used at the test step 5858 to determine if a new referenceframe is needed may vary and may include simply determining that thevalue of N modulo some number equals, a predetermined value. Thus, forexample, the test at the step 5858 could determine that a new referenceframe is needed for every fifth value of N (i.e., N=5, 10, 15, etc.). Ofcourse, other appropriate tests may be used at the step 5858 including,for example, using other metrics to determine if the conditions in thecargo bay have sufficiently changed so that another reference frame iswarranted.

If it is determined at the test step 5858 that a new reference frame isneeded, control transfers from the step 5858 to a step 5862 where alllights controllable by the CVCU 5642 are turned off. Following the step5862 is a step 5864 where a new reference frame, REF, is obtained.Following the step 5864 is a step 5866 where the index variable, N, isincremented. Note that the step 5866 is also reached from the test step5858 if it is determined at the test step 5858 that a new referenceframe is not needed. Following the step 5866, control transfers back tothe step 5848 to determine if N is greater than the number of lightingconditions, as discussed above.

For all of the embodiments disclosed herein, it is useful if pixelsaturation is avoided for both the measurement of the reference framesand the data frames. In addition, it is also useful to have a systemwhere the effect of controlled lighting (i.e., controlled by the CVCU5642) is strong enough to be distinguishable from the effect ofuncontrolled lighting. In some embodiments, this may be accomplished bymaking appropriate adjustments to the intensity of the controlledlighting so that the intensity of the controlled lighting is a function(at least in part) of the measured relative intensity of theuncontrolled lighting.

An alternative method of avoiding pixel saturation is to adjust camerasettings, such as gain and exposure time (or, alternatively, shutterspeed), which influence intensity of pixels within an acquired image. Acamera may adjust its settings according to received image intensitiesand an appropriate algorithm. The objective for such an adjustmentalgorithm is, on one hand, to avoid pixel saturation but, on the otherhand, to assure that as many pixels as possible are active (i.e. abovebackground level). In some embodiments, typical automatic gain controlfunctionality provided with many commercially available camera chips isnot used. Rather, the camera's software, residing within the DSP,adjusts the camera settings based on recently acquired images. Theadjustments may be made in such a way as not to hamper the smokedetection and aerosol differentiation functions of the system.

One possible consequence of such adjustments may be that thenon-illuminated reference frames may be collected with different camerasettings than the illuminated frames, which are to be analyzed. If thisis the case, then the frames cannot be directly subtracted, as the sameactual illumination may correspond to different pixel intensities in theframes to be subtracted. This difficulty may be solved by firsttranslating the acquired frames into a common intensity scale. Forexample, suppose that the non-illuminated reference frame was acquiredwith a camera gain G1, and the illuminated frame was acquired withcamera gain G2. The two frames are then translated into a commonintensity scale using appropriate intensity mapping, in order to makethem independent form the particular camera gain that was in effect whenthe frames were acquired. This transformation may be thought of as acorrection for variable camera gain settings. Then, both frames may bedirectly subtracted, as if both were acquired with the same camerasettings. Translation of intensity scale may involve increasing thebit-depth of the images. For example, if the images are acquired witheight-bit intensity resolution, then the images corrected for gainsettings may require sixteen-bit or even higher intensity resolution,depending on the range of the camera gain settings that may be in effectwhen acquiring the frames. If such camera setting adjustments andintensity corrections are used, it should be understood that they may beinclude within the image acquisition steps of the flow charts discussedabove.

A benefit of the system described herein is that cameras no longerrequire optical filters to eliminate visible light. This simplifies lensdesign and allows for less expensive and lighter cameras. An additionalbenefit is that illumination sources included in an embodiment no longerneed to be constrained to infrared range. Visible LED sources may beused instead. Note that use of infrared lighting may still be requiredby the airframe manufacturer, for example, to prevent agitation ofanimal cargo by rapidly switching lights. Another benefit is that cargobay lighting may be of a fluorescent type as well as other types. Withno optical filter present, it is of less consequence if the uncontrolledlighting falls into infrared spectrum. Therefore the system describedherein may also be used with, for example, incandescent lighting,daylight entering the cargo bay through an open door, and the like.

Optical filters may be used with the lights and cameras 2500 to allowdetection of hot spots using CCD cameras operating in the visual andnear infra-red (NIR) spectral band. Inexpensive CCD arrays may displayenough sensitivity to NIR light to allow detection of hot spots indark-field view. However, CCD arrays may also display much highersensitivity to visible light. Accordingly, it is useful to have completedarkness (relative to the CCD arrays) to detect hot spots through CCDcameras. Otherwise the visible light may dominate the thermal effectmaking hot spot detection difficult. Use of appropriate optical filterswith the CCD arrays allows eliminating visible light and performing hotspot detection as if the scene were completely dark. In a cargo bayenvironment, lighting may include lights of the fluorescent kind, forexample, or other types of light with radiation having wavelengths below800 nm. Thus, a filter blocking such light may allow only wavelengthsabove 800 nm to be passed to the CCD array to simulate dark-fieldconditions.

Based on the foregoing, what will now be described is a way to enabledetection of smoke and other aerosols using a CCD camera with anappropriate filter. It differs from the above-described concept in thatit may not require subtracting reference images to eliminate effects ofnuisance lighting. Instead, an optical filter may eliminate the lightoriginating from the nuisance sources. In addition, the use of filtersmakes it possible to use non-illuminated images for hot spot detection,as any bright spots may indicate a hot spot rather than an uncontrolledlight source. Note that hot spot detection through non-illuminatedimages requires that all nuisance light sources should have theirwavelengths restricted to the band blocked by the filter. For smoke andother aerosol analysis, appropriate illumination units are used, withlight emitted within the filter's pass band. Lighting scenarios andcombinations used in connection with embodiments may be used inconnection with any appropriate embodiments that use filters as well asembodiments that do not use filters.

The lighting scenarios used in connection with the steps of FIGS.106-110 may correspond to lighting scenarios described elsewhere herein,for example, in connection with FIG. 36. The reference frame(s) that areobtained may correspond to the dark/thermal view. Also, in someembodiments, non-illuminated reference frames are acquired andsubtracted when a filter is not used, but subtraction of non-illuminatedreference frames may not be necessary in instances where filters areused to eliminate light in a manner that approximates (or is identicalto) the way in which it would have been eliminated out by subtractingthe non-illuminated reference frames.

Use of the optical filter makes the fire detection system insensitive tonuisance light sources within the bay as long as their output does notspill into the pass band of the filter. It also makes the processingless computationally expensive, by removing the steps of compensatingfor nuisance lighting by means of subtracting the reference images,provided that such nuisance lighting does not contain NIR components andis thus blocked by the filter. Switching of different light sourcesallows observing different scattering and absorption effects due toaerosols within the enclosure, and consequently leads to fasterdetection.

It should be noted that the techniques described herein may be used inconnection other applications. The techniques used herein withvideo-based or image-based features may be used, without limitation, asa monitoring tool, such as in connection with monitoring cargo loading,unloading, and general monitoring of the cargo bay or other area underobservation for detection of events other than for fire/non-fire.

While the invention has been disclosed in connection with variousembodiments, modifications thereon will be readily apparent to thoseskilled in the art. Accordingly, the spirit and scope of the inventionis set forth in the following claims.

1. A method for distinguishing a smoke condition from a dust conditioncomprising: obtaining a first frame of video data; determining at leastone feature of a portion of said first frame; and determining a smokecondition if a threshold value for said at least one feature is crossed,and, in the presence of a dust condition, said threshold value is notcrossed.
 2. The method of claim 1, further comprising: setting a fireindicator if said threshold value is crossed.
 3. The method of claim 1,wherein said at least one feature is an average absolute gray levelintensity represented as:${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}\;{\sum\limits_{j = 1}^{M_{m}}\;{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i, j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i, j; t₀) is a pixel value at location (i,j) of a referenceframe at time 0; and N_(m) and M_(m) are dimensions of said portion. 4.The method of claim 3, wherein said first frame is obtained using oneof: an overhead lighting view in which only overhead controlled lightsare turned on, a diagonal lighting view in which only a light sourceopposite a camera obtaining said first frame is on, and a pilot lightingview in which only a light source co-located with a camera obtainingsaid first frame is on.
 5. The method of claim 3, wherein, if saidthreshold value is crossed, a smoke condition is determined.
 6. Themethod of claim 5, wherein said threshold value is determined inaccordance with a vibration level of noise in a system.
 7. The method ofclaim 6, further comprising: selecting said threshold in accordance withcriteria that all fire conditions are properly classified and anacceptable rate of dust cases are improperly classified.
 8. The methodof claim 7, wherein said criteria include detecting a fire conditionprior to a selected conventional smoke detector.
 9. The method of claim3, wherein said feature has a larger value in a smoke condition than adust condition.
 10. The method of claim 1, wherein said feature includesa plurality of features each associated with at least one threshold. 11.The method of claim 10, wherein said plurality of features includes atleast two of: a mean intesity value of an average pixel intensity forall pixels in said portion; a maximum pixel intensity value of a maximumpixel intensity for all pixels in said portion; a number of pixels in abright region, said number representing a number of pixels in saidportion that are one of: greater than a threshold intensity, and greaterthan a threshold intensity and connected to a minimum number ofneighboring pixels; a mean norm of intensity gradient vector for allpixels in said portion; and a norm of the second order moment matrixcalculated over all pixels in said portion.
 12. The method of claim 11,wherein a fire condition is determined if any one of the plurality offeatures crosses an associated threshold.
 13. The method of claim 11,wherein different features are determined and used in detecting a smokecondition in accordance with the particular lighting view of a frame.14. The method of claim 13, wherein said mean intensity value isdetermined for a frame obtained in one of a diagonal and overheadlighting view, said maximum pixel intensity is determined for a frameobtained in one of diagonal view, and said size of a brightness regionis determined for a frame obtained in one of a diagonal and overheadlighting views.
 15. The method of claim 14, wherein a differentthreshold is used for each combination of feature and lighting view forat least one feature.
 16. The method of claim 15, wherein said pluralityof features includes a feature that is a mean intensity represented as:${{mean}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}\;{\sum\limits_{j = 1}^{N}\;{P\left( {i,j} \right)}}}}$where: M represents a number of pixel rows in said portion; N representsa number of pixel columns in said portion; P is said portion of a frame;and P(i,j) is a pixel intensity or gray level at pixel position i,j inP.
 17. The method of claim 16, wherein said plurality of featuresincludes a second feature that is a mean norm of a gradient vectorrepresented as:${{mgrad}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M - 1}\;{\sum\limits_{j = 1}^{N - 1}\;\sqrt{{G_{1}\left( {i,j} \right)}^{2} + {G_{2}\left( {i,j} \right)}^{2}}}}}$where G₁ and G₂ are given by:G ₁(i,j)=X(i+1,j)−X(i,j)G ₂(i,j)=X(i,j+1)−X(i,j).
 18. The method of claim 17, wherein a value ofsaid second feature decreases as an image decreases in sharpness ofdetail.
 19. The method of claim 17, wherein a third feature of saidplurality of features is a norm of a second order moment matrixrepresented as: ${{norm}\; 2(P)} = {{norm}\left( \begin{bmatrix}{{SM}\; 20(P)} & {{SM}\; 11(P)} \\{{SM}\; 11(P)} & {{SM}\; 02(P)}\end{bmatrix} \right)}$ where second order moments SM20, SM02 and SM11are defined via equations:${X\;{{center}(P)}} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{iP}\left( {i,j} \right)}}}}$${Y\;{{center}(P)}} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{jP}\left( {i,j} \right)}}}}$${{SM}\; 20(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {X\;{center}}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 02(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {j - {Y\;{center}}} \right)^{2}{P\left( {i,j} \right)}}}}}$and${{SM}\; 11(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {X\;{center}}} \right)\left( {j - {Y\;{center}}} \right){{P\left( {i,j} \right)}.}}}}}$20. The method of claim 19, wherein said plurality of features includesa fourth feature that is the size of a bright region represented as:${{br}\;{{size}(P)}} = {\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{T\left( {i,j} \right)}}}$where binary thresholded image T is defined through at least anintensity threshold.
 21. The method of claim 20, wherein a firecondition is determined if any one value of any one feature crosses athreshold.
 22. The method of claim 20, further comprising: determiningsaid first, said second and said fourth features if said first frame isobtained using a diagonal lighting view in which said frame is obtainedusing only an opposing camera light; and determining said first, saidsecond and said third features if said first frame is obtained using anoverhead lighting view in which said frame is obtained using onlyoverhead lights.
 23. The method of claim 22, wherein at least onefeature is determined for multiple windows of said portion.
 24. Themethod of claim 23,wherein each of said multiple windows is determinedin accordance with a location of at least one light relative to locationand field of view of a camera acquiring frames.
 25. The method of claim22, wherein at least one of said plurality of features is determinedusing a relative change expressed as a ratio of a first value to asecond value, said first value representing said feature for saidportion and said second value representing a steady state feature value.26. The method of claim 20, wherein said plurality of features includesa fifth feature that is a maximum pixel intensity value represented as:${\max(P)} = {\max\limits_{\underset{{j = 1},N}{{i = 1},M}}{P\left( {i,j} \right)}}$where: M represents a number of pixel rows in said portion; N representsthe number of pixel columns in said portion; P is said portion; P(i,j)is a pixel intensity or gray level at pixel position i,j in saidportion.
 27. The method of claim 11, wherein said bright region isdetermined in accordance with an intensity threshold and a connectivityfactor.
 28. The method of claim 1, wherein said at least one feature isa rate of change feature based on an average absolute gray level,wherein the rate of change is calculated as:$\delta_{\mu} = \frac{{\mu(t)} - {\mu\left( {t - {\Delta\; t}} \right)}}{\Delta\; t}$where μ(t) and μ(t−Δt) are values of an average absolute intensityfeature at times t and t−Δt, respectively, and wherein said averageabsolute gray level is represented as:${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i,j; t) is a pixel value at location (i,j) and time t; P_(Ref)(i,j; t₀) is a pixel value at location (i,j) of a reference frame attime 0; and N_(m) and M_(m) are dimensions of said portion.
 29. Themethod of claim 28, wherein a value of said rate of change feature ishigher for a smoke condition than for a dust condition.
 30. A computerprogram product embodied on a non-transitory computer-readable mediumthat distinguishes a smoke condition from a dust condition comprisingexecutable code that: obtains a first frame of video data; determines atleast one feature of a portion of said first frame; and determines asmoke condition if a threshold value for said at least one feature iscrossed, and, in the presence of a dust condition, said threshold valueis not crossed.
 31. The computer program product of claim 30, furthercomprising: executable code that sets a fire indicator if said thresholdvalue is crossed.
 32. The computer program product of claim 31, whereinsaid at least one feature is an average absolute gray level intensityrepresented as:${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i,j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i,j; t₀) is a pixel value at location (i,j) of a reference frameat time 0; and N_(m) and M_(m) are dimensions of said portion.
 33. Thecomputer program product of claim 32, wherein said first frame isobtained using one of: an overhead lighting view in which only overheadcontrolled lights are turned on, a diagonal lighting view in which onlya light source opposite a camera obtaining said first frame is on, and apilot lighting view in which only a light source co-located with acamera obtaining said first frame is on.
 34. The computer programproduct of claim 32, wherein, if said threshold value is crossed, asmoke condition is determined.
 35. The computer program product of claim34, further comprising executable code that determines said thresholdvalue in accordance with a vibration level of noise in a system.
 36. Thecomputer program product of claim 35, further comprising: executablecode that selects said threshold in accordance with criteria that allfire conditions are properly classified and an acceptable rate of dustcases are improperly classified.
 37. The computer program product ofclaim 36, wherein said criteria include detecting a fire condition priorto a selected conventional smoke detector.
 38. The computer programproduct of claim 32, wherein said feature has a larger value in a smokecondition than a dust condition.
 39. The computer program product ofclaim 30, wherein said feature includes a plurality of features eachassociated with at least one threshold.
 40. The computer program productof claim 39, wherein said plurality of features includes at least twoof: a mean intesity value of an average pixel intensity for all pixelsin said portion; a maximum pixel intensity value of a maximum pixelintensity for all pixels in said portion; a number of pixels in a brightregion, said number representing a number of pixels in said portion thatare one of: greater than a threshold intensity, and greater than athreshold intensity and connected to a minimum number of neighboringpixels; a mean norm of intensity gradient vector for all pixels in saidportion; and a norm of the second order moment matrix calculated overall pixels in said portion.
 41. The computer program product of claim40, wherein a fire condition is determined if any one of the pluralityof features crosses an associated threshold.
 42. The computer programproduct of claim 40, further comprising executable code that determinesdifferent features used in detecting a smoke condition in accordancewith a particular lighting view of a frame.
 43. The computer programproduct of claim 42, wherein said mean intensity value is determined fora frame obtained in one of a diagonal and overhead lighting view, saidmaximum pixel intensity is determined for a frame obtained in one ofdiagonal view, and said size of a brightness region is determined for aframe obtained in one of a diagonal and overhead lighting views.
 44. Thecomputer program product of claim 43, wherein a different threshold isused for each combination of feature and lighting view for at least onefeature.
 45. The computer program product of claim 39, wherein saidplurality of features includes a feature that is a mean intensityrepresented as:${{mean}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{P\left( {i,j} \right)}}}}$where: M represents a number of pixel rows in said portion; N representsa number of pixel columns in said portion; P is said portion of a frame;and P(i,j) is a pixel intensity or gray level at pixel position i,j inP.
 46. The computer program product of claim 45, wherein said pluralityof features includes a second feature that is a mean norm of a gradientvector represented as:${{mgrad}(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M - 1}{\sum\limits_{j = 1}^{N - 1}\sqrt{{G_{1}\left( {i,j} \right)}^{2} + {G_{2}\left( {i,j} \right)}^{2}}}}}$where G₁ and G₂ are given by:G ₁(i,j)=X(i+1,j)−X(i,j)G ₂(i,j)=X(i,j+1)−X(i,j).
 47. The computer program product of claim 46,wherein a value of said second feature decreases as an image decreasesin sharpness of detail.
 48. The computer program product of claim 46,wherein a third feature of said plurality of features is a norm of asecond order moment matrix represented as:${{norm}\; 2(P)} = {{norm}\left( \begin{bmatrix}{{SM}\; 20(P)} & {{SM}\; 11(P)} \\{{SM}\; 11(P)} & {{SM}\; 02(P)}\end{bmatrix} \right)}$ where second order moments SM20, SM02 and SM11are defined via equations:${X\;{{center}(P)}} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{iP}\left( {i,j} \right)}}}}$${Y\;{{center}(P)}} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{{jP}\left( {i,j} \right)}}}}$${{SM}\; 20(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {X\;{center}}} \right)^{2}{P\left( {i,j} \right)}}}}}$${{SM}\; 02(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {j - {Y\;{center}}} \right)^{2}{P\left( {i,j} \right)}}}}}$and${{SM}\; 11(P)} = {\frac{1}{MN}{\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{\left( {i - {X\;{center}}} \right)\left( {j - {Y\;{center}}} \right){{P\left( {i,j} \right)}.}}}}}$49. The computer program product of claim 48, wherein said plurality offeatures includes a fourth feature that is the size of a bright regionrepresented as:${{br}\;{{size}(P)}} = {\sum\limits_{i = 1}^{M}{\sum\limits_{j = 1}^{N}{T\left( {i,j} \right)}}}$where binary thresholded image T is defined through at least anintensity threshold.
 50. The computer program product of claim 49,further comprising executable code that determines said bright region inaccordance with an intensity threshold and a connectivity factor. 51.The computer program product of claim 49, wherein a fire condition isdetermined if any one value of any one feature crosses a threshold. 52.The computer program product of claim 49, further comprising: executablecode that determines said first, said second and said fourth features ifsaid first frame is obtained using a diagonal lighting view in whichsaid frame is obtained using only an opposing camera light; andexecutable code that determines said first, said second and said thirdfeatures if said first frame is obtained using an overhead lighting viewin which said frame is obtained using only overhead lights.
 53. Thecomputer program product of claim 52, wherein at least one feature isdetermined for multiple windows of said portion.
 54. The computerprogram product of claim 53,wherein each of said multiple windows isdetermined in accordance with a location of at least one light relativeto location and field of view of a camera acquiring frames.
 55. Thecomputer program product of claim 52, wherein at least one of saidplurality of features is determined using a relative change expressed asa ratio of a first value to a second value, said first valuerepresenting said feature for said portion and said second valuerepresenting a steady state feature value.
 56. The computer programproduct of claim 49, wherein said plurality of features includes a fifthfeature that is a maximum pixel intensity value represented as:${\max(P)} = {\max\limits_{\underset{{j = 1},N}{{i = 1},M}}{P\left( {i,j} \right)}}$where: M represents a number of pixel rows in said portion; N representsthe number of pixel columns in said portion; P is said portion; P(i,j)is a pixel intensity or gray level at pixel position i,j in saidportion.
 57. The computer program product of claim 30, wherein said atleast one feature is a rate of change feature based on an averageabsolute gray level, wherein the rate of change is calculated as:$\delta_{\mu} = \frac{{\mu(t)} - {\mu\left( {t - {\Delta\; t}} \right)}}{\Delta\; t}$where μ(t) and μ(t−Δt) are values of an average absolute intensityfeature at times t and t−Δt, respectively, and wherein said averageabsolute gray level is represented as:${\mu(t)} = {\frac{1}{N_{m} \times M_{m}}{\sum\limits_{i = 1}^{N_{m}}{\sum\limits_{j = 1}^{M_{m}}{{{P\left( {i,{j;t}} \right)} - {P_{Ref}\left( {i,{j;t_{0}}} \right)}}}}}}$where: P(i,j; t) is a pixel value at location (i,j) and time t;P_(Ref)(i,j; t₀) is a pixel value at location (i,j) of a reference frameat time 0; and N_(m) and M_(m) are dimensions of said portion.
 58. Thecomputer program product of claim 57, wherein a value of said rate ofchange feature is higher for a smoke condition than for a dustcondition.